Преглед изворни кода

return return vaule in key filter wrapper

Evan You пре 12 година
родитељ
комит
c4550f7981
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
         }
     }
 }