Appeasing the gods of JSHint

This commit is contained in:
Jeremy Ruston
2012-11-06 17:21:56 +00:00
parent 54252a5400
commit 9f6909ddc4
28 changed files with 69 additions and 66 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ exports.convertStyleNameToPropertyName = function(styleName) {
}
}
// Put it in the cache too
styleNameCache[styleName] = propertyName
styleNameCache[styleName] = propertyName;
return propertyName;
};
@@ -124,7 +124,7 @@ exports.convertEventName = function(eventName) {
}
}
// Put it in the cache too
eventNameCache[eventName] = newEventName
eventNameCache[eventName] = newEventName;
return newEventName;
};
+1 -1
View File
@@ -139,7 +139,7 @@ exports.pulseElement = function(element) {
},false);
// Apply the pulse class
$tw.utils.removeClass(element,"pulse");
element.offsetWidth;
$tw.utils.forceLayout(element);
$tw.utils.addClass(element,"pulse");
};
+1 -1
View File
@@ -122,7 +122,7 @@ Modal.prototype.display = function(title) {
{transition: "opacity " + d + " ease-out"}
]);
$tw.utils.setStyle(modalWrapper,[
{transition: $tw.utils.roundTripPropertyName("transform") + " " + $tw.config.preferences.animationDurationMs + " ease-in-out"},
{transition: $tw.utils.roundTripPropertyName("transform") + " " + $tw.config.preferences.animationDurationMs + " ease-in-out"}
]);
// Force layout
$tw.utils.forceLayout(modalBackdrop);
+1 -1
View File
@@ -258,7 +258,7 @@ exports.stringify = function(s) {
Escape the RegExp special characters with a preceding backslash
*/
exports.escapeRegExp = function(s) {
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
return s.replace(/[\-\/\\\^\$\*\+\?\.\(\)\|\[\]\{\}]/g, '\\$&');
};
exports.nextTick = function(fn) {