Add ability to simulate DOM attachment to spec helper

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-04-19 17:39:59 -07:00
committed by Corey Johnson
parent 0024cf89de
commit b1ab0735c7

View File

@@ -131,3 +131,5 @@ $.fn.textInput = (data) ->
event = jQuery.event.fix(event)
$(this).trigger(event)
$.fn.simulateDomAttachment = ->
$('<html>').append(this)