undelegate: function( selector, types, fn ) {
if ( arguments.length === 0 ) {
- return this.unbind( "live" );
+ return this.unbind( "live" );
} else {
return this.die( types, null, fn, selector );
}
if ( name === "die" && !types &&
- origSelector && origSelector[0] === "." ) {
+ origSelector && origSelector.charAt(0) === "." ) {
context.unbind( origSelector );
jQuery(document).undelegate();
});
-test("undelegate() with only namespaces", function(){
+test("undelegate() with only namespaces", function() {
expect(2);
var $delegate = jQuery("#liveHandlerOrder"),
- count = 0;
+ count = 0;
$delegate.delegate("a", "click.ns", function(e) {
count++;