Remove unused local variables. Fix failing form test.
This commit is contained in:
parent
fa15f212fa
commit
2c986d8eaf
|
@ -1,3 +1,5 @@
|
|||
* Remove unused local variables from `Element.extend`. Fix one of the form tests to remove `_extendedByPrototype` by setting it to `undefined` rather than `false` (`_extendedByPrototype` being `false` does not force `Element.extend` to re-extend element). (T.J. Crowder, kangax)
|
||||
|
||||
* Make test for `escapeHTML`/`unescapeHTML` more strict. (Chrome 1.x escapes "<" and "&" with `innerHTML`, but not ">") (kangax)
|
||||
|
||||
* Remove another sniffing from one of DOM tests. Fixes last IE8 failure. (kangax)
|
||||
|
|
|
@ -1690,7 +1690,7 @@ Element.extend = (function() {
|
|||
element.nodeType != 1 || element == window) return element;
|
||||
|
||||
var methods = Object.clone(Methods),
|
||||
tagName = element.tagName.toUpperCase(), property, value;
|
||||
tagName = element.tagName.toUpperCase();
|
||||
|
||||
// extend methods for specific tags
|
||||
if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]);
|
||||
|
|
|
@ -291,8 +291,8 @@ new Test.Unit.Runner({
|
|||
|
||||
form = $('bigform');
|
||||
var input = form['tf_text'], select = form['tf_selectOne'];
|
||||
input._extendedByPrototype = select._extendedByPrototype = false;
|
||||
|
||||
input._extendedByPrototype = select._extendedByPrototype = void 0;
|
||||
|
||||
this.assert($(input).anInputMethod);
|
||||
this.assert(!input.aSelectMethod);
|
||||
this.assertEqual('input', input.anInputMethod());
|
||||
|
|
Loading…
Reference in New Issue