Clean reserved words

This commit is contained in:
Zixaphir 2013-08-25 11:29:44 -07:00
parent 44f83a756a
commit b9ab19974b
5 changed files with 27 additions and 27 deletions

View File

@ -6892,7 +6892,7 @@
return range;
},
makeLink: function(range) {
var a, char, i, text;
var a, i, t, text;
text = range.toString();
i = 0;
@ -6909,8 +6909,8 @@
}
}
i = 0;
while (/[)\]}>.,]/.test(char = text.charAt(text.length - (1 + i)))) {
if (!(/[.,]/.test(char) || (text.match(/[()\[\]{}<>]/g)).length % 2)) {
while (/[)\]}>.,]/.test(t = text.charAt(text.length - (1 + i)))) {
if (!(/[.,]/.test(t) || (text.match(/[()\[\]{}<>]/g)).length % 2)) {
break;
}
i++;
@ -8145,14 +8145,14 @@
};
_Class.prototype.updateFilename = function() {
var long;
var title;
long = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear.";
this.nodes.el.title = long;
title = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear.";
this.nodes.el.title = title;
if (this !== QR.selected) {
return;
}
return QR.nodes.fileContainer.title = long;
return QR.nodes.fileContainer.title = title;
};
_Class.prototype.showFileData = function() {
@ -8945,13 +8945,13 @@
return nodes.total.textContent = --i;
},
generateThumb: function(file) {
var double, post, thumb, title;
var dupe, post, thumb, title;
post = Get.postFromNode(file);
title = ($('.fileText a', file)).textContent;
thumb = post.file.thumb.parentNode.cloneNode(true);
if (double = $('img + img', thumb)) {
$.rm(double);
if (dupe = $('img + img', thumb)) {
$.rm(dupe);
}
thumb.className = 'gal-thumb';
thumb.title = title;

View File

@ -6902,7 +6902,7 @@
return range;
},
makeLink: function(range) {
var a, char, i, text;
var a, i, t, text;
text = range.toString();
i = 0;
@ -6919,8 +6919,8 @@
}
}
i = 0;
while (/[)\]}>.,]/.test(char = text.charAt(text.length - (1 + i)))) {
if (!(/[.,]/.test(char) || (text.match(/[()\[\]{}<>]/g)).length % 2)) {
while (/[)\]}>.,]/.test(t = text.charAt(text.length - (1 + i)))) {
if (!(/[.,]/.test(t) || (text.match(/[()\[\]{}<>]/g)).length % 2)) {
break;
}
i++;
@ -8152,14 +8152,14 @@
};
_Class.prototype.updateFilename = function() {
var long;
var title;
long = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear.";
this.nodes.el.title = long;
title = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear.";
this.nodes.el.title = title;
if (this !== QR.selected) {
return;
}
return QR.nodes.fileContainer.title = long;
return QR.nodes.fileContainer.title = title;
};
_Class.prototype.showFileData = function() {
@ -8933,13 +8933,13 @@
return nodes.total.textContent = --i;
},
generateThumb: function(file) {
var double, post, thumb, title;
var dupe, post, thumb, title;
post = Get.postFromNode(file);
title = ($('.fileText a', file)).textContent;
thumb = post.file.thumb.parentNode.cloneNode(true);
if (double = $('img + img', thumb)) {
$.rm(double);
if (dupe = $('img + img', thumb)) {
$.rm(dupe);
}
thumb.className = 'gal-thumb';
thumb.title = title;

View File

@ -109,8 +109,8 @@ Gallery =
post = Get.postFromNode file
title = ($ '.fileText a', file).textContent
thumb = post.file.thumb.parentNode.cloneNode true
if double = $ 'img + img', thumb
$.rm double
if dupe = $ 'img + img', thumb
$.rm dupe
thumb.className = 'gal-thumb'
thumb.title = title

View File

@ -115,8 +115,8 @@ Linkify =
# Clean hanging brackets, commas, periods
i = 0
while /[)\]}>.,]/.test char = text.charAt text.length - (1 + i)
break unless /[.,]/.test(char) or (text.match /[()\[\]{}<>]/g).length % 2
while /[)\]}>.,]/.test t = text.charAt text.length - (1 + i)
break unless /[.,]/.test(t) or (text.match /[()\[\]{}<>]/g).length % 2
i++
if i

View File

@ -722,10 +722,10 @@ QR =
URL.revokeObjectURL @URL
updateFilename: ->
long = "#{@filename} (#{@filesize})\nCtrl+click to edit filename. Shift+click to clear."
@nodes.el.title = long
title = "#{@filename} (#{@filesize})\nCtrl+click to edit filename. Shift+click to clear."
@nodes.el.title = title
return unless @ is QR.selected
QR.nodes.fileContainer.title = long
QR.nodes.fileContainer.title = title
showFileData: ->
if @file