Optimizations

This commit is contained in:
seaweedchan 2013-08-16 02:07:05 -07:00
parent 40efb3cbc7
commit daf05e895d
3 changed files with 7 additions and 10 deletions

View File

@ -8473,9 +8473,8 @@
subtitle.title = "Ctrl+click to edit board subtitle";
}
children = banner.children;
i = children.length;
while (i--) {
child = children[i];
i = 0;
while (child = children[i++]) {
if (child.tagName.toLowerCase() === "img") {
child.id = "Banner";
child.title = "Click to change";

View File

@ -8463,9 +8463,8 @@
subtitle.title = "Ctrl+click to edit board subtitle";
}
children = banner.children;
i = children.length;
while (i--) {
child = children[i];
i = 0;
while (child = children[i++]) {
if (child.tagName.toLowerCase() === "img") {
child.id = "Banner";
child.title = "Click to change";

View File

@ -10,10 +10,9 @@ Banner =
subtitle = $ ".boardSubtitle"
btitle.title = "Ctrl+click to edit board title"
subtitle.title = "Ctrl+click to edit board subtitle"
children = banner.children
i = children.length
while i--
child = children[i]
{children} = banner
i = 0
while child = children[i++]
if child.tagName.toLowerCase() is "img"
child.id = "Banner"
child.title = "Click to change"