scratch
/bower_components/jquery/src/deprecated.js |
@@ -1,30 +1,13 @@ |
define( [ |
"./core" |
define([ |
"./core", |
"./traversing" |
], function( jQuery ) { |
|
"use strict"; |
// The number of elements contained in the matched element set |
jQuery.fn.size = function() { |
return this.length; |
}; |
|
jQuery.fn.extend( { |
jQuery.fn.andSelf = jQuery.fn.addBack; |
|
bind: function( types, data, fn ) { |
return this.on( types, null, data, fn ); |
}, |
unbind: function( types, fn ) { |
return this.off( types, null, fn ); |
}, |
|
delegate: function( selector, types, data, fn ) { |
return this.on( types, selector, data, fn ); |
}, |
undelegate: function( selector, types, fn ) { |
|
// ( namespace ) or ( selector, types [, fn] ) |
return arguments.length === 1 ? |
this.off( selector, "**" ) : |
this.off( types, selector || "**", fn ); |
} |
} ); |
|
jQuery.parseJSON = JSON.parse; |
|
} ); |
}); |