summaryrefslogtreecommitdiffstats
path: root/vnfmarket/common/thirdparty/jquery/src/deprecated.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/common/thirdparty/jquery/src/deprecated.js')
-rw-r--r--vnfmarket/common/thirdparty/jquery/src/deprecated.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/vnfmarket/common/thirdparty/jquery/src/deprecated.js b/vnfmarket/common/thirdparty/jquery/src/deprecated.js
new file mode 100644
index 00000000..9fcc6b7d
--- /dev/null
+++ b/vnfmarket/common/thirdparty/jquery/src/deprecated.js
@@ -0,0 +1,30 @@
+define( [
+ "./core"
+], function( jQuery ) {
+
+"use strict";
+
+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 );
+ }
+} );
+
+jQuery.parseJSON = JSON.parse;
+
+} );