Created
February 8, 2010 22:17
-
-
Save dandean/298644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this: | |
| styleSet.each(this.add, this); | |
| // is the same as this: | |
| styleSet.each(function(s) { | |
| this.add(s); | |
| }, this); | |
| // The first one is not only shorter, but speedier | |
| // because it has one less function in its closure chain. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment