Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
getElementsByClassName()
with select()
.
Adrian Yee pointed out that `getElementsByClassName()` will find all elements with that class in the entire document, whereas calling Prototype's `select()` with a class name selector on a single element will find only elements with that class name under the element. This is more efficient, and much more likely to be correct.
- Loading branch information
Showing
4 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 file contains 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 file contains 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 file contains 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