From 20bb8562f25747c138d2c26ca5d80e5229a5558b Mon Sep 17 00:00:00 2001 From: Avital Oliver Date: Fri, 21 Feb 2014 19:44:26 -0800 Subject: [PATCH] Fix argument to an event handler in a test Also, eliminate code to deal with IE7 --- packages/spacebars-tests/template_tests.js | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/packages/spacebars-tests/template_tests.js b/packages/spacebars-tests/template_tests.js index cbb249c214..c0a30a047b 100644 --- a/packages/spacebars-tests/template_tests.js +++ b/packages/spacebars-tests/template_tests.js @@ -1478,20 +1478,11 @@ Tinytest.add("spacebars - controls - radio", function(test) { return R.get(); }; tmpl.events({ - 'change input': function () { - // IE 7 is known to fire change events on all - // the radio buttons with checked=false, as if - // each button were deselected before selecting - // the new one. (Meteor doesn't normalize this - // behavior.) - // However, browsers are consistent if we are - // getting a checked=true notification. + 'change input': function (event) { var btn = event.target; - if (btn.checked) { - var band = btn.value; - change_buf.push(band); - R.set(band); - } + var band = btn.value; + change_buf.push(band); + R.set(band); } });