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

Changeset 6617

Show
Ignore:
Timestamp:
04/29/07 00:11:23 (1 year ago)
Author:
mislav
Message:

Prototype: weird Gecko bug. I can't preventDefault() *and* log() the event at the same time

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/branches/event/test/functional/event.html

    r6616 r6617  
    8080      var line, all = []; 
    8181      for (prop in obj) { 
    82         if (/^[A-Z]|[XY]$/.test(prop) || typeof obj[prop] == 'function') continue; 
     82        if (typeof obj[prop] == 'function' || /^[A-Z]|[XY]$/.test(prop)) continue; 
    8383        line = prop + ": " + Object.inspect(obj[prop]); 
    8484        all.push(line.escapeHTML()); 
     
    143143      el = $(this.parentNode) 
    144144      e.preventDefault() 
    145       log(e) 
     145      // log(e) // this makes it fail?!? 
    146146 
    147147      setTimeout(function() {