Use split and join instead of substr
Bug #1285120 reported by
Anthony Dillon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Video Player |
New
|
Medium
|
Karl Williams |
Bug Description
I would suggest use split and join instead of substr in the toggleClass and removeClass function for speed.
- classString = classString.
+ classString = classString.
Do not need the nameIndex variable then as the indexOf is only referenced once. So can move into the if conditional statement.
Changed in canonical-video-player: | |
importance: | Undecided → Medium |
assignee: | nobody → Karl Williams (deadlight) |
To post a comment you must log in.