MDL-43262 JavaScript: Correct visible attribute override

This should be done using an attribute modification, rather than at the
constructor level.
This commit is contained in:
Andrew Nicols
2014-01-13 08:26:28 +13:00
committed by Sam Hemelryk
parent 16d024348a
commit c46cca4f94
4 changed files with 40 additions and 4 deletions
@@ -70,7 +70,6 @@ DIALOGUE = function(c) {
}
config.srcNode = '#'+id;
config.visible = config.visible || false;
config.center = config.centered && true;
config.centered = false;
config.COUNT = COUNT;
@@ -496,6 +495,19 @@ Y.Base.modifyAttrs(DIALOGUE, {
}
return value;
}
},
/**
* Boolean indicating whether or not the Widget is visible.
*
* We override this from the default Widget attribute value.
*
* @attribute visible
* @default false
* @type Boolean
*/
visible: {
value: false
}
});
File diff suppressed because one or more lines are too long
@@ -70,7 +70,6 @@ DIALOGUE = function(c) {
}
config.srcNode = '#'+id;
config.visible = config.visible || false;
config.center = config.centered && true;
config.centered = false;
config.COUNT = COUNT;
@@ -494,6 +493,19 @@ Y.Base.modifyAttrs(DIALOGUE, {
}
return value;
}
},
/**
* Boolean indicating whether or not the Widget is visible.
*
* We override this from the default Widget attribute value.
*
* @attribute visible
* @default false
* @type Boolean
*/
visible: {
value: false
}
});
+13 -1
View File
@@ -39,7 +39,6 @@ DIALOGUE = function(c) {
}
config.srcNode = '#'+id;
config.visible = config.visible || false;
config.center = config.centered && true;
config.centered = false;
config.COUNT = COUNT;
@@ -465,6 +464,19 @@ Y.Base.modifyAttrs(DIALOGUE, {
}
return value;
}
},
/**
* Boolean indicating whether or not the Widget is visible.
*
* We override this from the default Widget attribute value.
*
* @attribute visible
* @default false
* @type Boolean
*/
visible: {
value: false
}
});