Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-06-28 08:50:40 +0300
committerGitHub <noreply@github.com>2016-06-28 08:50:40 +0300
commit02daed6db8fb7269d1b3a466cbb32ed7fab76e85 (patch)
treea534b2905593d44eece6a9f896522e524cb0d28f /libs/bower_components/jquery/src/deprecated.js
parentf981b2579a95ce60a2b7d2aa146925b4d2222e0a (diff)
Update JQuery to the latest 1.12.4 version (#10260)
* Update JQuery to the latest 1.* version * UI tests: Updated Jquery to latest version
Diffstat (limited to 'libs/bower_components/jquery/src/deprecated.js')
-rw-r--r--libs/bower_components/jquery/src/deprecated.js25
1 files changed, 23 insertions, 2 deletions
diff --git a/libs/bower_components/jquery/src/deprecated.js b/libs/bower_components/jquery/src/deprecated.js
index 1b068bc342..1dcfbf3357 100644
--- a/libs/bower_components/jquery/src/deprecated.js
+++ b/libs/bower_components/jquery/src/deprecated.js
@@ -1,8 +1,29 @@
-define([
+define( [
"./core",
"./traversing"
], function( jQuery ) {
+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 );
+ }
+} );
+
// The number of elements contained in the matched element set
jQuery.fn.size = function() {
return this.length;
@@ -10,4 +31,4 @@ jQuery.fn.size = function() {
jQuery.fn.andSelf = jQuery.fn.addBack;
-});
+} );