mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-18 07:40:42 +00:00
Appeasing the gods of JSHint
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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");
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user