Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3794

Show
Ignore:
Timestamp:
03/06/06 17:28:19 (3 years ago)
Author:
sam
Message:

prototype: Make $$ work in IE. Closes #3715.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/CHANGELOG

    r3793 r3794  
    11*SVN* 
     2 
     3* Make $$ work in IE. Closes #3715. [rubyonrails@brainsick.com] 
    24 
    35* 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  
    2020        case '#':       params.id = clause; break; 
    2121        case '.':       params.classNames.push(clause); break; 
     22        case '': 
    2223        case undefined: params.tagName = clause.toUpperCase(); break; 
    2324        default:        abort(expr.inspect()); 
     
    4748 
    4849  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()); 
    5152  }, 
    5253