diff options
| author | 2016-11-15 14:18:53 -0300 | |
|---|---|---|
| committer | 2016-11-15 14:18:53 -0300 | |
| commit | 1ad5102b7ddd181bb9c632b124d3ea4c7db28be6 (patch) | |
| tree | 73dda18465d0f4b8eb52d4482282a387c9f67c95 /bower_components/jquery/src/deprecated.js | |
| parent | b67294f76809a681ff73f209ed691a3e3f00563d (diff) | |
| parent | ffb671c61a24a9086343b54bad080e145ff33fc5 (diff) | |
Merge tag 'upstream/7.8.1'
Upstream version 7.8.1
# gpg: Firmado el mar 15 nov 2016 14:18:48 ART
# gpg: usando RSA clave A6C7B88B9583046A11C5403E0B00FB6CEBE2D002
# gpg: Firma correcta de "Ulises Vitulli <dererk@debian.org>" [absoluta]
# gpg: alias "Dererk <dererk@torproject.org>" [absoluta]
# gpg: alias "Ulises Vitulli <uvitulli@fi.uba.ar>" [absoluta]
# gpg: alias "Ulises Vitulli <dererk@satellogic.com>" [absoluta]
Diffstat (limited to 'bower_components/jquery/src/deprecated.js')
| -rw-r--r-- | bower_components/jquery/src/deprecated.js | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/bower_components/jquery/src/deprecated.js b/bower_components/jquery/src/deprecated.js index 1b068bc..1dcfbf3 100644 --- a/bower_components/jquery/src/deprecated.js +++ b/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; -}); +} ); |
