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

Changeset 6644

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

prototype: Merge -r6639:HEAD from branches/rel_1-5-1 into trunk.

Files:

Legend:

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

    r6626 r6644  
    33* Add Function#curry, Function#delay, Function#defer, and Function#wrap.  Closes #8134.  [Andrew Dupont, Tobie Langel, sam] 
    44 
    5 *1.5.1* (it is a mystery) 
     5*1.5.1* (May 1, 2007) 
     6 
     7* Don't duplicate the event argument in Function#bindAsEventListener.  Closes #6497.  [wiktor] 
     8 
     9* Fix Selector :not-clause chaining.  [Andrew Dupont] 
    610 
    711*1.5.1_rc4* (April 27, 2007) 
  • spinoffs/prototype/trunk/src/base.js

    r6626 r6644  
    7878    var __method = this, args = $A(arguments), object = args.shift(); 
    7979    return function(event) { 
    80       return __method.apply(object, [(event || window.event)].concat(args).concat($A(arguments))); 
     80      return __method.apply(object, [event || window.event].concat(args)); 
    8181    } 
    8282  }, 
  • spinoffs/prototype/trunk/src/selector.js

    r6477 r6644  
    219219    id:           /^#([\w\-\*]+)(\b|$)/, 
    220220    className:    /^\.([\w\-\*]+)(\b|$)/, 
    221     pseudo:       /^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|\s)/, 
     221    pseudo:       /^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|\s|(?=:))/, 
    222222    attrPresence: /^\[([\w]+)\]/, 
    223223    attr:         /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\]]*?)\4|([^'"][^\]]*?)))?\]/ 
  • spinoffs/prototype/trunk/test/unit/selector.html

    r6477 r6644  
    325325      assertEnumEqual([$('link_2')], $$('#p a:not(a[rel$=nofollow])'), 'attribute 3'); 
    326326      assertEnumEqual([$('em')], $$('#p a:not(a[rel$="nofollow"]) > em'), 'attribute 4') 
     327      assertEnumEqual([$('item_2')], $$('#list li:not(#item_1):not(#item_3)'), 'adjacent :not clauses'); 
    327328    }}, 
    328329