UI Formatting Cleanup

This commit is contained in:
Qstick 2017-10-07 02:21:06 -04:00
parent b963f2aa82
commit 52e3d96f4a
110 changed files with 901 additions and 701 deletions

View file

@ -1,3 +1,5 @@
/* eslint no-empty-function: 0 no-extend-native: 0 */
window.console = window.console || {};
window.console.log = window.console.log || function() {};
window.console.group = window.console.group || function() {};
@ -26,7 +28,7 @@ if (!String.prototype.endsWith) {
value(searchString, position) {
position = position || this.length;
position = position - searchString.length;
var lastIndex = this.lastIndexOf(searchString);
const lastIndex = this.lastIndexOf(searchString);
return lastIndex !== -1 && lastIndex === position;
}
});
@ -34,6 +36,6 @@ if (!String.prototype.endsWith) {
if (!('contains' in String.prototype)) {
String.prototype.contains = function(str, startIndex) {
return -1 !== String.prototype.indexOf.call(this, str, startIndex);
return String.prototype.indexOf.call(this, str, startIndex) !== -1;
};
}