Ticket #11533: version_for_git.diff
| File version_for_git.diff, 1.1 kB (added by jdalton, 3 months ago) |
|---|
-
a/src/selector.js
old new 61 61 return; 62 62 } 63 63 64 this.matcher = ["this.matcher = function(root) {", 65 "var r = root, h = Selector.handlers, c = false, n;"]; 64 this.matcher = ["var r = root, h = Selector.handlers, c = false, n;"]; 66 65 67 66 while (e && le != e && (/\S/).test(e)) { 68 67 le = e; … … 77 76 } 78 77 } 79 78 80 this.matcher.push("return h.unique(n); \n}");81 eval(this.matcher.join('\n'));79 this.matcher.push("return h.unique(n);"); 80 this.matcher = new Function('root', this.matcher.join('\n')); 82 81 Selector._cache[this.expression] = this.matcher; 83 82 }, 84 83