Remove unnecessary build type test.
This commit is contained in:
parent
3891140427
commit
0fdef3fcfa
@ -331,11 +331,9 @@ UI = do ->
|
|||||||
$.on d, 'keydown', o.hoverend
|
$.on d, 'keydown', o.hoverend
|
||||||
$.on root, 'mousemove', o.hover
|
$.on root, 'mousemove', o.hover
|
||||||
|
|
||||||
<% if (type === 'userscript') { %>
|
|
||||||
# Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=674955
|
# Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=674955
|
||||||
o.workaround = (e) -> o.hoverend(e) unless root.contains e.target
|
o.workaround = (e) -> o.hoverend(e) unless root.contains e.target
|
||||||
$.on doc, 'mousemove', o.workaround
|
$.on doc, 'mousemove', o.workaround
|
||||||
<% } %>
|
|
||||||
|
|
||||||
hover = (e) ->
|
hover = (e) ->
|
||||||
@latestEvent = e
|
@latestEvent = e
|
||||||
@ -365,10 +363,8 @@ UI = do ->
|
|||||||
$.off @root, @endEvents, @hoverend
|
$.off @root, @endEvents, @hoverend
|
||||||
$.off d, 'keydown', @hoverend
|
$.off d, 'keydown', @hoverend
|
||||||
$.off @root, 'mousemove', @hover
|
$.off @root, 'mousemove', @hover
|
||||||
<% if (type === 'userscript') { %>
|
|
||||||
# Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=674955
|
# Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=674955
|
||||||
$.off doc, 'mousemove', @workaround
|
$.off doc, 'mousemove', @workaround
|
||||||
<% } %>
|
|
||||||
@cb.call @ if @cb
|
@cb.call @ if @cb
|
||||||
|
|
||||||
checkbox = (name, text, checked) ->
|
checkbox = (name, text, checked) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user