Browse Source

edit empty function for platform consistency

Shelley Vohr 7 years ago
parent
commit
75a117e4e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/common/api/callbacks-registry.js

+ 1 - 1
lib/common/api/callbacks-registry.js

@@ -40,7 +40,7 @@ class CallbacksRegistry {
   }
 
   get (id) {
-    return this.callbacks[id] != null ? this.callbacks[id] : () => {}
+    return this.callbacks[id] != null ? this.callbacks[id] : function () {}
   }
 
   apply (id, ...args) {