Permalink
Browse files

Make the previous "event args" change work on IE6 too

  • Loading branch information...
1 parent afbbf24 commit c5da64250f358185cdc72a79f11e92b4811175eb @SteveSanderson SteveSanderson committed Dec 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/binding/defaultBindings.js
@@ -31,7 +31,7 @@ ko.bindingHandlers['event'] = {
try {
// Take all the event args, and prefix with the viewmodel
- var argsForHandler = Array.prototype.splice.call(arguments, 0);
+ var argsForHandler = ko.utils.makeArray(arguments);
argsForHandler.unshift(viewModel);
handlerReturnValue = handlerFunction.apply(viewModel, argsForHandler);
} finally {

0 comments on commit c5da642

Please sign in to comment.