X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/fx/target/CompositeElement.js diff --git a/src/fx/target/CompositeElement.js b/src/fx/target/CompositeElement.js new file mode 100644 index 00000000..7a7f1316 --- /dev/null +++ b/src/fx/target/CompositeElement.js @@ -0,0 +1,33 @@ +/** + * @class Ext.fx.target.CompositeElement + * @extends Ext.fx.target.Element + * + * This class represents a animation target for a {@link Ext.CompositeElement}. It allows + * each {@link Ext.core.Element} in the group to be animated as a whole. In general this class will not be + * created directly, the {@link Ext.CompositeElement} will be passed to the animation and + * and the appropriate target will be created. + */ +Ext.define('Ext.fx.target.CompositeElement', { + + /* Begin Definitions */ + + extend: 'Ext.fx.target.Element', + + /* End Definitions */ + + isComposite: true, + + constructor: function(target) { + target.id = target.id || Ext.id(null, 'ext-composite-'); + this.callParent([target]); + }, + + getAttr: function(attr, val) { + var out = [], + target = this.target; + target.each(function(el) { + out.push([el, this.getElVal(el, attr, val)]); + }, this); + return out; + } +});