mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
Fix highlight error when opening browser tools
This commit is contained in:
parent
7487df5af8
commit
37ac9f1a69
1 changed files with 2 additions and 2 deletions
|
@ -430,7 +430,7 @@ module.exports = class PlayLevelView extends RootView
|
||||||
viewArgs: [{supermodel: @supermodel, autoUnveil: true}, @levelID]
|
viewArgs: [{supermodel: @supermodel, autoUnveil: true}, @levelID]
|
||||||
}
|
}
|
||||||
|
|
||||||
onWindowResize: (e) -> @endHighlight()
|
onWindowResize: (e) -> @endHighlight?()
|
||||||
|
|
||||||
onDisableControls: (e) ->
|
onDisableControls: (e) ->
|
||||||
return if e.controls and not ('level' in e.controls)
|
return if e.controls and not ('level' in e.controls)
|
||||||
|
@ -500,7 +500,7 @@ module.exports = class PlayLevelView extends RootView
|
||||||
|
|
||||||
onHighlightDOM: (e) -> @highlightElement e.selector, delay: e.delay, sides: e.sides, offset: e.offset, rotation: e.rotation
|
onHighlightDOM: (e) -> @highlightElement e.selector, delay: e.delay, sides: e.sides, offset: e.offset, rotation: e.rotation
|
||||||
|
|
||||||
onEndHighlight: -> @endHighlight()
|
onEndHighlight: -> @endHighlight?()
|
||||||
|
|
||||||
onFocusDom: (e) -> $(e.selector).focus()
|
onFocusDom: (e) -> $(e.selector).focus()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue