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 1 changed file with 2 additions and 1 deletion.
@@ -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
Copy link
Member

@jaubourg jaubourg commented on 1ebb5ab Dec 16, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor Author

@gf3 gf3 commented on 1ebb5ab Dec 16, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@jaubourg
Copy link
Member

@jaubourg jaubourg commented on 1ebb5ab Dec 17, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@gf3
Copy link
Contributor Author

@gf3 gf3 commented on 1ebb5ab Dec 19, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated: ade531c.

Please sign in to comment.