Ignore redundant calls to $::attachToDom

This commit is contained in:
Nathan Sobo 2014-09-25 22:17:26 -06:00
parent 8723e69f1c
commit aa1eb94fa7

View File

@ -357,7 +357,7 @@ $.fn.enableKeymap = ->
not e.originalEvent.defaultPrevented not e.originalEvent.defaultPrevented
$.fn.attachToDom = -> $.fn.attachToDom = ->
@appendTo($('#jasmine-content')) @appendTo($('#jasmine-content')) unless @isOnDom()
$.fn.simulateDomAttachment = -> $.fn.simulateDomAttachment = ->
$('<html>').append(this) $('<html>').append(this)