Build update

This commit is contained in:
Francisco Hodge
2019-03-06 19:37:49 -05:00
parent 18a3aa9dd5
commit 477972f26f
11 changed files with 245 additions and 127 deletions
+8 -7
View File
@@ -366,10 +366,10 @@ class Utilities {
}
/**
* Determines whether a touch device is being used
* Determines whether a touch device is being used
*/
isTouchDevice(){
return 'ontouchstart' in window || navigator.maxTouchPoints;
isTouchDevice() {
return "ontouchstart" in window || navigator.maxTouchPoints;
}
/**
@@ -377,10 +377,11 @@ class Utilities {
*/
static bindMethods(myClass, instance) {
for (let myMethod of Object.getOwnPropertyNames(myClass.prototype)) {
let excludeMethod = (myMethod === "constructor" || myMethod === "bindMethods");
if (!excludeMethod) {
instance[myMethod] = instance[myMethod].bind(instance);
}
let excludeMethod =
myMethod === "constructor" || myMethod === "bindMethods";
if (!excludeMethod) {
instance[myMethod] = instance[myMethod].bind(instance);
}
}
}