-
-
Save jzaefferer/7325217f7f3c78f45457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test( "_bind() to common element", function() { | |
expect( 1 ); | |
$.widget( "ui.testWidget", { | |
_create: function() { | |
this._bind( this.document, { | |
"customevent": "_handler" | |
}); | |
}, | |
_handler: function() { | |
ok( true, "handler triggered" ); | |
}, | |
trigger: function() { | |
this.document.trigger( "customevent" ); | |
} | |
}); | |
var widget1 = $( "#widget" ).testWidget().data( "testWidget" ), | |
widget2 = $.ui.testWidget(); | |
widget1.destroy(); | |
widget2.trigger(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment