Changeset 6644
- Timestamp:
- 05/01/07 04:19:46 (3 years ago)
- Files:
-
- spinoffs/prototype/trunk/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/trunk/src/base.js (modified) (1 diff)
- spinoffs/prototype/trunk/src/selector.js (modified) (1 diff)
- spinoffs/prototype/trunk/test/unit/selector.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r6626 r6644 3 3 * Add Function#curry, Function#delay, Function#defer, and Function#wrap. Closes #8134. [Andrew Dupont, Tobie Langel, sam] 4 4 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] 6 10 7 11 *1.5.1_rc4* (April 27, 2007) spinoffs/prototype/trunk/src/base.js
r6626 r6644 78 78 var __method = this, args = $A(arguments), object = args.shift(); 79 79 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)); 81 81 } 82 82 }, spinoffs/prototype/trunk/src/selector.js
r6477 r6644 219 219 id: /^#([\w\-\*]+)(\b|$)/, 220 220 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|(?=:))/, 222 222 attrPresence: /^\[([\w]+)\]/, 223 223 attr: /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\]]*?)\4|([^'"][^\]]*?)))?\]/ spinoffs/prototype/trunk/test/unit/selector.html
r6477 r6644 325 325 assertEnumEqual([$('link_2')], $$('#p a:not(a[rel$=nofollow])'), 'attribute 3'); 326 326 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'); 327 328 }}, 328 329