From 359e8810de0052a945b8361a9b59aae1171cef05 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Sun, 9 Mar 2008 07:27:02 +0000 Subject: [PATCH] prototype: Minor clean-up of selector.js. Closes #10844. --- CHANGELOG | 2 ++ src/selector.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8c74f9d..2737cf5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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] diff --git a/src/selector.js b/src/selector.js index 05789f7..d2ca1b7 100644 --- a/src/selector.js +++ b/src/selector.js @@ -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; },