From b03d93901f9f1cc97bb3d20586436d576fe75466 Mon Sep 17 00:00:00 2001 From: Julian Arni Date: Wed, 26 Jun 2013 12:36:04 -0400 Subject: [PATCH] Pass arguments from ctxCall forward to set state --- common/static/js/capa/jsinput.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/static/js/capa/jsinput.js b/common/static/js/capa/jsinput.js index 6b7cac2429..0137d4ca7b 100644 --- a/common/static/js/capa/jsinput.js +++ b/common/static/js/capa/jsinput.js @@ -24,7 +24,11 @@ oldthis.pop(); oldthis = oldthis.join(); var newthis = _deepKey(obj, oldthis); - return func.apply(newthis); + + var args = Array.prototype.slice.call(arguments); + args = args.slice(2, args.length); + + return func.apply(newthis, args); }; // First time this function was called?