prototype: Minor clean-up of selector.js. Closes #10844.

This commit is contained in:
Tobie Langel 2008-03-09 07:27:02 +00:00
parent c7e0a3d93c
commit 359e8810de
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
* Minor clean-up of selector.js. Closes #10844. [RQuadling]
* Make String#unescapeHTML strip tags in IE. Closes #10173. [kangax]
* Stop form observers in unit tests. Closes #10938. [kangax]

View File

@ -47,7 +47,7 @@ var Selector = Class.create({
p = ps[i];
if (m = e.match(p)) {
this.matcher.push(Object.isFunction(c[i]) ? c[i](m) :
new Template(c[i]).evaluate(m));
new Template(c[i]).evaluate(m));
e = e.replace(m[0], '');
break;
}
@ -386,7 +386,7 @@ Object.extend(Selector, {
nextElementSibling: function(node) {
while (node = node.nextSibling)
if (node.nodeType == 1) return node;
if (node.nodeType == 1) return node;
return null;
},