Skip to content
Permalink
Browse files

Added list of browsers that currently support Function#bind.

  • Loading branch information...
gf3 committed Dec 16, 2010
1 parent 5b1b578 commit 1ebb5ab3e1c670e04024cd949fa6f341e93c4487
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/support.js
@@ -60,7 +60,8 @@
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
optSelected: opt.selected,

// Test for native Function#bind.
// Test for presence of native Function#bind.
// Currently in: Chrome 7, FireFox 4
nativeBind: jQuery.isFunction( Function.prototype.bind ),

// Will be defined later

4 comments on commit 1ebb5ab

@jaubourg

This comment has been minimized.

Copy link
Member

jaubourg replied Dec 16, 2010

Hehe, seems to me you misunderstood snover's request. ;)

The goal is to know which browsers do not support the feature so that when we drop support for all of them we'll be able to remove the property and all tests depending on it.

Nice patch nonetheless :)

@gf3

This comment has been minimized.

Copy link
Contributor Author

gf3 replied Dec 16, 2010

Heh, I just thought it might be easier to list which ones currently support Function#bind. Should I reverse this?

@jaubourg

This comment has been minimized.

Copy link
Member

jaubourg replied Dec 17, 2010

Well, in the goal of knowing when to remove the property, a list of browsers not supporting is better, yes.

@gf3

This comment has been minimized.

Copy link
Contributor Author

gf3 replied Dec 19, 2010

Updated: ade531c.

Please sign in to comment.
You can’t perform that action at this time.