aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorGianni Chiappetta <gianni@runlevel6.org>2010-12-15 18:31:10 -0500
committerGianni Chiappetta <gianni@runlevel6.org>2010-12-15 18:31:10 -0500
commit5b1b57850cfd4c92a4f9231581dff7faac489566 (patch)
tree2fd550c6d06b7ce01b0e03a92c07a485d48f94ad /src/core.js
parent9f8cd6c499844451468257140e71f611abb3a040 (diff)
downloadjquery-5b1b57850cfd4c92a4f9231581dff7faac489566.tar.gz
jquery-5b1b57850cfd4c92a4f9231581dff7faac489566.zip
Add a quick test to $.support for native bind.
As per the suggestion by ajpiano: https://github.com/gf3/jquery/commit/9f8cd6c499844451468257140e71f611abb3a040#commitcomment-218658
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index 74ec4ea03..a6e2a46f8 100644
--- a/src/core.js
+++ b/src/core.js
@@ -751,7 +751,7 @@ jQuery.extend({
return undefined;
}
- if ( jQuery.isFunction( Function.prototype.bind ) ) {
+ if ( jQuery.support.nativeBind ) {
// Native bind
args = slice.call( arguments, 1 );
proxy = Function.prototype.bind.apply( fn, args );