From 0cf6b232ac9cf128ee9183a27c08f4f74ab2e2e6 Mon Sep 17 00:00:00 2001 From: grakiss Date: Thu, 28 Sep 2017 03:47:54 -0400 Subject: add api&web services for cvp JIRA: DOVETAIL-512 add api&web services for cvp Change-Id: I9ef9525e980fe61dc3108035ef9a3ff8783b2697 Signed-off-by: grakiss --- .../testapi-ui/assets/lib/jquery/src/deprecated.js | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/deprecated.js (limited to 'cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/deprecated.js') diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/deprecated.js b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/deprecated.js new file mode 100644 index 00000000..9589ec87 --- /dev/null +++ b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/deprecated.js @@ -0,0 +1,40 @@ +define( [ + "./core", + "./core/nodeName" +], function( jQuery, nodeName ) { + +"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.holdReady = function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } +}; +jQuery.isArray = Array.isArray; +jQuery.parseJSON = JSON.parse; +jQuery.nodeName = nodeName; + +} ); -- cgit 1.2.3-korg