Changeset 3794
- Timestamp:
- 03/06/06 17:28:19 (3 years ago)
- Files:
-
- spinoffs/prototype/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/src/selector.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/CHANGELOG
r3793 r3794 1 1 *SVN* 2 3 * Make $$ work in IE. Closes #3715. [rubyonrails@brainsick.com] 2 4 3 5 * Add test/browser.html, which provides a simple object browser for the Prototype source (Firefox/Safari only). [sam] spinoffs/prototype/src/selector.js
r3792 r3794 20 20 case '#': params.id = clause; break; 21 21 case '.': params.classNames.push(clause); break; 22 case '': 22 23 case undefined: params.tagName = clause.toUpperCase(); break; 23 24 default: abort(expr.inspect()); … … 47 48 48 49 compileMatcher: function() { 49 this.match = eval('function(element) {if (!element.tagName) return false; \50 return ' + this.buildMatchExpression() + ' }');50 this.match = new Function('element', 'if (!element.tagName) return false; \ 51 return ' + this.buildMatchExpression()); 51 52 }, 52 53