Prettified all files.
This commit is contained in:
+6
-7
@@ -7,11 +7,10 @@ export default class Interface {
|
||||
static implementationError(klass) {
|
||||
let interfaceKeys = Reflect.ownKeys(this.prototype)
|
||||
let classKeys = Reflect.ownKeys(klass.prototype)
|
||||
for(let key of interfaceKeys) {
|
||||
for (let key of interfaceKeys) {
|
||||
let interfaceDesc = this.prototype[key]
|
||||
let classDesc = klass.prototype[key]
|
||||
if (typeof(classDesc) == 'undefined')
|
||||
return 'Missing ' + key
|
||||
if (typeof classDesc == 'undefined') return 'Missing ' + key
|
||||
}
|
||||
return null
|
||||
}
|
||||
@@ -23,8 +22,8 @@ export default class Interface {
|
||||
return error == null
|
||||
}
|
||||
|
||||
// TODO: Specify optional methods
|
||||
// static optionalMethods() {
|
||||
// return [this.onMouseWheel]
|
||||
// }
|
||||
// TODO: Specify optional methods
|
||||
// static optionalMethods() {
|
||||
// return [this.onMouseWheel]
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user