7d9f4a49ef5e163b5f38d09a20f72208ab859e65 |
|
20-Oct-2011 |
Ryan Grove <ryan@wonko.com> |
Use the new Test Console widget. |
5c1d9e043503606aacdf14c2a39d4fce211e7c64 |
|
14-Sep-2011 |
Ryan Grove <ryan@wonko.com> |
Y.mix() will no longer shadow prototype properties on the receiver by default. [Fixes #2530501]
In 3.3.0 and earlier, when doing an object to object mix, a property
"foo" on the receiver's prototype would block a property "foo" from
being mixed into the receiver itself if overwrite == false. In 3.4.0,
prototype properties are ignored during an object to object mix, since
that's essentially the definition of what an object to object mix is
(i.e., "mix things from this object [not its prototype] into that object
[not its prototype]").
After much discussion and consideration, we've decided to bring back the
old behavior to preserve backwards compatibility. While the old behavior
violates the strict definition of an object to object mix, the new
behavior violates the principle of least surprise, so the old behavior
is the lesser of the two evils.
One side effect of the old (and now new again) behavior that should be
noted is that since shadowing of prototype properties is never allowed
when overwrite is false, using Y.mix() or Y.augment() with an object or
class that contains a toString() property (or any other property that
exists on Object.prototype) will result in that property not being
augmented. The only way to augment an object with properties that would
shadow those on Object.prototype is to set the overwrite parameter to
true. This caveat would also apply to properties added to
Object.prototype by other JS on the page (Object.prototype.toJSON comes
to mind). |
ef4b6659548ee523f959373e98007d9ba8fe5cd3 |
|
14-May-2011 |
Ryan Grove <ryan@wonko.com> |
Refactor oop tests. |
162f907b0bc058a5ddc4abb9d96487a7e8054234 |
|
02-Dec-2010 |
Adam Moore <adamoore@yahoo-inc.com> |
Fixed IE error when the delete operator was throwing for certain objects. |
9982ae2753aea312f8260f66903f5cfb1d202d22 |
|
22-Feb-2010 |
Adam Moore <adamoore@yahoo-inc.com> |
test update |
1a125802d0197be3a237ac2a3c92d65f37a9b115 |
|
22-Jan-2010 |
Adam Moore <adamoore@yahoo-inc.com> |
Classes that implement an 'each' iterator like NodeList and ArrayList will have that each function executed if an instance is passed to Y.each -- this isn't new, but it was preventing these classes from using some of the inheritance functions. The inheritance functions have been fixed so that this now works. [fixes #2528555]. |
c744d97ebbf47004385f51ea7a2a6375ad555f75 |
|
11-Jan-2010 |
Adam Moore <adamoore@yahoo-inc.com> |
DOMReady tweaks [fixes #2528304]. Removed redundant init code. |
77233109ecd5f5823f64aed88ebfbae24c2d402f |
|
08-Jan-2010 |
Adam Moore <adamoore@yahoo-inc.com> |
Added Y.Array.forEach as an alias to Y.array.each in the collection package. |
e8ee5956695dc217be0c3390cc987e66bb22c179 |
|
08-Jan-2010 |
Adam Moore <adamoore@yahoo-inc.com> |
Fixed recursion problem when an object passed to Y.clone has a property that is a reference to itself. |
ca65ed2d362d134af5ddb6fee437bcd2f4c681bb |
|
08-Jan-2010 |
Adam Moore <adamoore@yahoo-inc.com> |
restored hasOwnProperty check in merge/mix |
626e12912d29abcb725be2eeb2b1fcde1cec151c |
|
06-Nov-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
each/some do not throw when passed non-objects [fixes #2528342]. |
23209f57fce338501bc1dc828a991d103732b92f |
|
18-Sep-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
Any given object is only cloned once. DOM element attributes are not cloned. [bug #2528250]. |
5c69c6f367621a346c43fb031885185b7555f950 |
|
17-Sep-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
Added special handling for Nodes to clone [fixes #2528250]. |
0771d781138a507b3e657573703f511291640bf3 |
|
12-Aug-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
Initial custom event split |
e275a18d7f6fd57baf841eb4c8f82d790c1ef6bd |
|
17-Jun-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
API revamp. Corrected Event.Target and Event.Custom refs (now EventTarget and CustomEvent). |
8556a973cf2503e0990811fc2b7a48193ae23149 |
|
30-Apr-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
removed context arg from Y.cached |
bd4e7bf54bb629b039ba9e22ba57cf09cddce482 |
|
15-Apr-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
test update |
d3c498b6d1138f87eedc0a1a4fb0f21ac713cba5 |
|
10-Apr-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
queue metadata update |
ba2328a2983042c5fed38cfe42b67ec9ea3fb588 |
|
10-Apr-2009 |
Adam Moore <adamoore@yahoo-inc.com> |
bind() supports a string representing a function to execute on the context object in order to allow subclassing of bound methods. |