mirror of
https://github.com/atom/atom.git
synced 2026-02-05 12:15:07 -05:00
Ignore redundant calls to $::attachToDom
This commit is contained in:
@@ -357,7 +357,7 @@ $.fn.enableKeymap = ->
|
||||
not e.originalEvent.defaultPrevented
|
||||
|
||||
$.fn.attachToDom = ->
|
||||
@appendTo($('#jasmine-content'))
|
||||
@appendTo($('#jasmine-content')) unless @isOnDom()
|
||||
|
||||
$.fn.simulateDomAttachment = ->
|
||||
$('<html>').append(this)
|
||||
|
||||
Reference in New Issue
Block a user