Sfoglia il codice sorgente

return return vaule in key filter wrapper

Evan You 12 anni fa
parent
commit
c4550f7981
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/filters.js

+ 1 - 1
src/filters.js

@@ -86,7 +86,7 @@ filters.key = function (handler, key) {
     }
     }
     return function (e) {
     return function (e) {
         if (e.keyCode === code) {
         if (e.keyCode === code) {
-            handler.call(this, e)
+            return handler.call(this, e)
         }
         }
     }
     }
 }
 }