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; },