You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When extending Object prototype before applying binding, then the exception happens during the binding process: Exception:
VM548 knockout-debug.js:3326 Uncaught TypeError: Unable to process binding "command: function (){return test }"
Message: ko.bindingHandlers[command].init is not a function
As I found, the issue is in knockout.command.js file on lines 97 and 115. Instead of relying on isBindingHandler(command) only, I think it should also check commands.hasOwnProperty(command).
Whoever can fix it in branch, please do it :)
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
When extending Object prototype before applying binding, then the exception happens during the binding process:
Exception:
VM548 knockout-debug.js:3326 Uncaught TypeError: Unable to process binding "command: function (){return test }"
Message: ko.bindingHandlers[command].init is not a function
Jsfiddle: https://jsfiddle.net/6gv62tge/
As I found, the issue is in knockout.command.js file on lines 97 and 115. Instead of relying on
isBindingHandler(command)
only, I think it should also check commands.hasOwnProperty(command).Whoever can fix it in branch, please do it :)
Thanks!
The text was updated successfully, but these errors were encountered: