Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build for fix #2531929 - cloning attribute hosts with node values

  • Loading branch information...
commit 99bbfe13446cbf1786edd0a1f9eddd5c5f3d8357 1 parent 0b4bad3
@sdesai sdesai authored
View
10 build/attribute-base/attribute-base-debug.js
@@ -49,8 +49,16 @@ YUI.add('attribute-base', function(Y) {
* @uses AttributeCore
* @uses AttributeEvents
* @uses AttributeExtras
- */
+ */
var Attribute = function() {
+
+ // Fix #2531929
+ // Complete hack, to make sure the first clone of a node value in IE doesn't doesn't hurt state - maintains 3.4.1 behavior.
+ // Too late in the release cycle to do anything about the core problem.
+ // The root issue is that cloning a Y.Node instance results in an object which barfs in IE, when you access it's properties (since 3.3.0).
+ this._ATTR_E_FACADE = null;
+ this._yuievt = null;
+
Y.AttributeCore.apply(this, arguments);
Y.AttributeEvents.apply(this, arguments);
Y.AttributeExtras.apply(this, arguments);
View
2  build/attribute-base/attribute-base-min.js
@@ -1 +1 @@
-YUI.add("attribute-base",function(b){var a=function(){b.AttributeCore.apply(this,arguments);b.AttributeEvents.apply(this,arguments);b.AttributeExtras.apply(this,arguments);};b.mix(a,b.AttributeCore,false,null,1);b.mix(a,b.AttributeExtras,false,null,1);b.mix(a,b.AttributeEvents,true,null,1);a.INVALID_VALUE=b.AttributeCore.INVALID_VALUE;a._ATTR_CFG=b.AttributeCore._ATTR_CFG.concat(b.AttributeEvents._ATTR_CFG);b.Attribute=a;},"@VERSION@",{requires:["attribute-core","attribute-events","attribute-extras"]});
+YUI.add("attribute-base",function(b){var a=function(){this._ATTR_E_FACADE=null;this._yuievt=null;b.AttributeCore.apply(this,arguments);b.AttributeEvents.apply(this,arguments);b.AttributeExtras.apply(this,arguments);};b.mix(a,b.AttributeCore,false,null,1);b.mix(a,b.AttributeExtras,false,null,1);b.mix(a,b.AttributeEvents,true,null,1);a.INVALID_VALUE=b.AttributeCore.INVALID_VALUE;a._ATTR_CFG=b.AttributeCore._ATTR_CFG.concat(b.AttributeEvents._ATTR_CFG);b.Attribute=a;},"@VERSION@",{requires:["attribute-core","attribute-events","attribute-extras"]});
View
10 build/attribute-base/attribute-base.js
@@ -49,8 +49,16 @@ YUI.add('attribute-base', function(Y) {
* @uses AttributeCore
* @uses AttributeEvents
* @uses AttributeExtras
- */
+ */
var Attribute = function() {
+
+ // Fix #2531929
+ // Complete hack, to make sure the first clone of a node value in IE doesn't doesn't hurt state - maintains 3.4.1 behavior.
+ // Too late in the release cycle to do anything about the core problem.
+ // The root issue is that cloning a Y.Node instance results in an object which barfs in IE, when you access it's properties (since 3.3.0).
+ this._ATTR_E_FACADE = null;
+ this._yuievt = null;
+
Y.AttributeCore.apply(this, arguments);
Y.AttributeEvents.apply(this, arguments);
Y.AttributeExtras.apply(this, arguments);
Please sign in to comment.
Something went wrong with that request. Please try again.