sp-codes.de/bower_components/jquery/src/deprecated.js

31 lines
596 B
JavaScript
Raw Normal View History

2016-10-28 17:33:25 +00:00
define( [
"./core"
], function( jQuery ) {
2016-11-22 23:07:57 +00:00
"use strict";
2016-10-28 17:33:25 +00:00
jQuery.fn.extend( {
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 );
}
} );
2016-11-22 23:07:57 +00:00
jQuery.parseJSON = JSON.parse;
2016-10-28 17:33:25 +00:00
} );