Explorar o código

return return vaule in key filter wrapper

Evan You %!s(int64=12) %!d(string=hai) anos
pai
achega
c4550f7981
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/filters.js

+ 1 - 1
src/filters.js

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