Fix Form.reset test in IE

This commit is contained in:
Juriy Zaytsev 2009-03-20 16:10:39 -04:00
parent b34355653e
commit 4b9bf985a2
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
* Fix `Form.reset` test where `respondsTo` wouldn't detect a method due to typeof returning "object" (rather than "function") in IE (kangax)
* Remove Array#reduce which currently overrides native `reduce` in clients implementing JS1.8, e.g. Firefox 3+ (Tobie Langel, Andrew Dupont, kangax)
* Make sure try/catch/finally is used instead of try/finally for clients without support for the latter one (e.g. Blackberry, IE) (Ville Koskinen, kangax)

View File

@ -27,7 +27,7 @@ new Test.Unit.Runner({
},
testFormReset: function() {
this.assertRespondsTo('reset', Form.reset('form'));
this.assert(!Object.isUndefined(Form.reset('form').reset));
},
testFormElementEventObserver: function(){