0b4bad3bc665dbd4cfc6d3c2b65a85b7c6781767 |
|
27-Mar-2012 |
Satyen Desai <sdesai@yahoo-inc.com> |
Fixed (or at least returned to 3.4.1 state), the sublest regression ever,
related to Y.cloning Attribute driven objects with Node values (e.g. Anim),
on IE.
Fundamentally, Y.cloning nodes is broken in IE and has been since 3.3.0.
If an object holds multiple references to a Node instance, the first
reference encountered while cloning, will be a damaged clone. Subsequent
references encountered will not clone (and hence be OK).
After the Attribute refactor, the value stored in State was the first
reference encountered, resulting in permanent damage.
Before the refactor, a transient event based reference was the first reference
encountered, and hence was less likely to cause real-world problems.
* Added unit test cases to cover cloning Attribute based objects, with node values
* Tested on IE6, 7, 8, 9.
* Ran some core unit tests (App, Plugin, Widget, Attribute, Base, Node) through Yeti on IE8, Chrome, Safari, FF.
* Spot tested a couple of examples (Widget/App/Attribute).
Wanted to get this in before testfest tomorrow.
Fixes #2531929
Longer term fix for Y.clone(node) on IE is still required. |
b6b02f95bf4c876d235372bcf5325bec49b3b701 |
|
15-Mar-2012 |
Satyen Desai <sdesai@yahoo-inc.com> |
More line level coverage for Attribute |
fc959040918187071a259796aee3ff18a90dc22e |
|
14-Mar-2012 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added path to test valueFn:string |
d2fe481f82326b03c9a545af61f3379ac5d7fef1 |
|
14-Mar-2012 |
Satyen Desai <sdesai@yahoo-inc.com> |
Fixed bugs in attribute._getAttrCfg and state.removeAll, found while
bumping up unit test coverage for attribute-extras and
attribute-core. Fixes #2531891. Fixes #2531892
Added standalone state unit tests also. |
3f06abe9e62a6f13d506c568f6f40017cb856df9 |
|
06-Mar-2012 |
Satyen Desai <sdesai@yahoo-inc.com> |
Fixed regression - Y.augment(node, Y.Attribute) not firing valueChange events. Fixes #2531851 |
de3bb93a2386b0b0af425ce11af6db4e9c269b08 |
|
23-Feb-2012 |
Dav Glass <davglass@gmail.com> |
Fixed failing Attribute tests |
2b7125b1271732c191ab0b73be768534afd62fc5 |
|
22-Feb-2012 |
Dav Glass <davglass@gmail.com> |
Fixed failing Attribute tests |
07226670a36c50b38c5abba8a36d013f36a75b7b |
|
13-Feb-2012 |
Satyen Desai <sdesai@yahoo-inc.com> |
More adhoc attr tests - enabled/disabled |
ed73fd1af1279111c591bd65981adbdc23a3a94a |
|
11-Feb-2012 |
Satyen Desai <sdesai@yahoo-inc.com> |
Initial drop for ad-hoc constructor attribute support. See #2528968 |
42ca760bb9929dcdf6624637a7613f6f1ebcb4b4 |
|
16-Dec-2011 |
Satyen Desai <sdesai@yahoo-inc.com> |
* Added BaseCore Tests
* Fixed AttributeCore to handle Base and BaseCore references (thanks to tests)
* Fixed whitespace in Attribute docs. |
1bb9ba7f0e700971d0c04fca23820699348cfd49 |
|
07-Sep-2011 |
Satyen Desai <sdesai@yahoo-inc.com> |
Prepped tests for coverage reporting |
c4cf29edebef0d1c75ccfa55f67b2549c235bf8e |
|
17-May-2011 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added param support to constructor. Fixes #2530093. Added unit tests too (just like Ryan does) |
98c1ab155c0e2148f69291b1abe1007c9d5a08e8 |
|
30-Apr-2010 |
Satyen Desai <sdesai@yahoo-inc.com> |
Pulled in modified tests (names, no console) from 3.1.0+ branch |
3e7f85ec7387c4d64019bcf7fdc7bd4c11d1c381 |
|
23-Feb-2010 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added writeOnce:'initOnly' support, to allow users to define attributes which can only be set during construction |
30551f406370f7c8bf461a833205311de720886d |
|
18-Feb-2010 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added intl unit tests, fixed root lang handling to return instead of null for root lang. Fixed yui- to yui3- in attribute tests |
f56f1f09f1262a349b35886a3dc54e54e53087c0 |
|
10-Feb-2010 |
Todd Kloots <kloots@yahoo-inc.com> |
Updated to account for the "newVal" property of attribute change events passing through defined getter. |
3250d374362f1262404330f9e1ff12ef90fd9ecc |
|
04-Nov-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added support to allow ATTRS function refs (setter, getter, validator, valueFn) to be specified by instance method name. Avoids anonymous fn hop and promotes best practice of encapsulating logic in instance methods |
93b31bd141160f8d627792f39168f958fae4e569 |
|
16-Sep-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Attribute should test against raw value stored in state, as opposed to massaged value from getter, when determining if state actually changed in order to notify after listeners. Fixes #2528248.
It's a fairly rare case (rawNewVal === massagedPrevVal would not invoke after listeners) for which this would actually break in it's currently buggy state, but it's the right thing for Attribute to do, so wanted to make the fix for GA.
* Attribute unit tests all pass, including new ones added for this use case.
* No example regressions found, apart from one - in Overlay/Widget-StdMod set content before/after examples.
* Widget-StdMod was broken because of the funky way it was handling set content changes, when inserting content before or after the existing content. Cleaning this up fixed the issue. |
43a2d15bdc307ec452e019bef157e2e1b9eaf074 |
|
02-Sep-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added 2nd level merge for Node augmented with Attribute use case, to protect not only the attrs hash, but also each config. Code change is only used for the Node augmented with Attribute use case. Base use case is unchanged. |
b739fa18392d5b0246ada4f88f0fde5cf67ef2fb |
|
27-Aug-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Attribute currently will not invoke after listeners if the value of an attribute has not changed (using a newVal === prevVal test) during a set. This commit limits this behavior to primitives, so that attributes with Object values can be set to the same Object reference, but with modified Object state (e.g. property change, array elements added etc.) and still have after listeners notified to react to the changed Object state. |
4433d5551a126f424b704073060c368d187761f2 |
|
12-Aug-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Fixed typo. base-complex -> attribute-complex in loader meta-data. Also added attribute as a widget dependendency adding attribute-complex support OOTB. |
b85d1985be16db3dda1472884cd80605795d2f88 |
|
05-Aug-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added support for _stateProxy (to be used by Node). Also renamed private internal '_conf' property to '_state' to match. _stateProxy usage still needs testing, but normal Attribute usage tests all pass. |
c938b255ef3c02ee132e52fbd15bb211c6f3f760 |
|
05-Aug-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
1). Fixed hasImpl method on Base.build classes. Fixes #2527997.
2). Allow ad-hoc attributes (attribute which have not be added/configured)
to be set/get.
3). Allow PluginHost to be used on classes without _getClasses()
impl (in preparation to make it independant of Base).
4). Minor kweight tweaks. |
cc05f14a87293a437bcbe67deac2da7edad2a120 |
|
30-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Minor perf/kweight refactor. Use local var for clazz.ATTRS. Also renamed the _lazyAttrInit flag to _lazyAddAttrs to match addAttrs API method. Currently only drag.js is using it to disable lazy attribute init (and it's not planning to for beta 1) |
3a81ce564b8d21870eb054300f28209035ce88ce |
|
29-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Fix for silent init support - forgot to add VALUE key to state.add(INITIALIZED, VALUE, val) call |
787a9eae53aa81478d7d866e8283ec62a6f0e206 |
|
23-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Lazy Attribute Support. For a 22 Attribute Test Object : Lazy construction (no attributes configured) = 2.15ms -> 1.45ms (FF3), 6.25 -> 3.9 (IE6). Lazy construction + all attributes configured lazily (expected to be a little slower) = 2.5ms -> 2.65ms (FF3), 8.6ms -> 7ms (IE6). Lazy attribute support is configurable on an instance level. All Attribute tests pass. No regressions in Node, Anim, DD, Widget, Overlay, Slider examples aside for DD group and DD scroll support (due to the fact that setters were being used to set state in other parts of the object). |
38fd4279e9ce2122181d97c075e98b5f899c8522 |
|
15-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added plughost, plugin, Base.plug, Base.unplug unit tests |
53288619a04c477cdf5e0f959dacddfe242182d9 |
|
13-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added ability to modify a subset of the attribute configuration properties, after intial configuration. The attribute properties which are modifiable are ones which if changed, don't have the potential to conflict with the stored value. These are getter, readOnly, writeOne and broadcast. Fixes #2527834 |
a1eb4ab883f94a7346666b9784db277dd3418a23 |
|
12-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Attributes for which user provided initial value fails validation will revert to default configured value. Fixes #2527830 |
3681658caa31e1b61b575d03cde5d5798b101eaa |
|
11-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added broadcast support for attribute events (Y.Focus requirement) |
6b0677bea1dc9de537097193e201731c0357a661 |
|
09-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added basic construction perf test to attribute unit tests |
c953f6562bc9790b8b04f97ffc6866583e1694f2 |
|
08-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Attribute getter, setter, validator now receive attribute name as 2nd arg (value, name). Fixes #2527872 |
7892f3d8ca60a683faeac9707e277bb47eec4126 |
|
07-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Base Sugar: Added ability to subscribe to on/after event moments through the constructor. Minor perf tweak - use String.splice instead of String.split when we only need the attribute name from a complex ('x.y.z') set |
8089142faf9a180758947150b9d6b0992904335f |
|
05-May-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Attribute: Init on demand feature. Initial commit. Needs optimization/cleanup pass |
2980f571d488bbedf898e7bf587bdcd3020720a5 |
|
10-Apr-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Re-added dynamic:false support to Base.build. Fixed compressor var warnings |
77b62780ab47bc020d3cae8b1fb13c808d9bca7c |
|
09-Apr-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Only notify after listeners if attribute value has really changed (uses === for comparison). Sub Attribute value changes made using the . notation (set(x.y.z, 5)) will always notify after listeners, since we don't want to do a deep compare for perf reasons. Fixes #2527833 |
c8d493f23e9db7a32ea841c174b8bf4b54d665de |
|
03-Apr-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Added support for setters to prevent a set by returning Attribute.INVALID_VALUE. Added test case for it also |
401383eea94bfce43024210092fbc67f86613a19 |
|
31-Mar-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Remove logLevel setting from Console |
5c2651bfcd2a66e38c57f0a242996c053b8a91d4 |
|
30-Mar-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Removed EventTarget wrappers in Base. Using EventTarget prefix instead |
8ab6c5a43c971d3f5b9f12ea6e5794a394a9a19c |
|
28-Mar-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
Attribute beta1 fixes and API changes - cfg.set -> cfg.setter, cf.get -> cfg.getter, xxxAtts -> xxxAttrs, validator before set, over-ride support for static defaults, removed CLONE support. Attribute tests pass. Anim, DD, Widget, Overlay, Slider examples pass. |
d3966fd264ce4975cf548ce7ed36b723596d4227 |
|
25-Mar-2009 |
Satyen Desai <sdesai@yahoo-inc.com> |
First Attribute pass on beta1 candidate - still have an issue to fix with static object values |
13c4505d6df2d3db68248902959be8c92998d0fc |
|
14-Jan-2009 |
Dav Glass <davglass@gmail.com> |
House cleaning.. |