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

Changeset 6641

Show
Ignore:
Timestamp:
05/01/07 04:00:15 (3 years ago)
Author:
sam
Message:

prototype: Don't duplicate the event argument in Function#bindAsEventListener. Closes #6497.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/branches/rel_1-5-1/CHANGELOG

    r6640 r6641  
    11*1.5.1* (it is a mystery) 
     2 
     3* Don't duplicate the event argument in Function#bindAsEventListener.  Closes #6497.  [wiktor] 
    24 
    35* Fix Selector :not-clause chaining.  [Andrew Dupont] 
  • spinoffs/prototype/branches/rel_1-5-1/src/base.js

    r6555 r6641  
    7777  var __method = this, args = $A(arguments), object = args.shift(); 
    7878  return function(event) { 
    79     return __method.apply(object, [( event || window.event)].concat(args).concat($A(arguments))); 
     79    return __method.apply(object, [event || window.event].concat(args)); 
    8080  } 
    8181}