1 <!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-fx.target.Target-method-constructor'><span id='Ext-fx.target.Target'>/**
2 </span></span> * @class Ext.fx.target.Target
4 This class specifies a generic target for an animation. It provides a wrapper around a
5 series of different types of objects to allow for a generic animation API.
6 A target can be a single object or a Composite object containing other objects that are
7 to be animated. This class and it's subclasses are generally not created directly, the
8 underlying animation will create the appropriate Ext.fx.target.Target object by passing
9 the instance to be animated.
11 The following types of objects can be animated:
12 - {@link #Ext.fx.target.Component Components}
13 - {@link #Ext.fx.target.Element Elements}
14 - {@link #Ext.fx.target.Sprite Sprites}
19 * @param {Mixed} target The object to be animated
22 Ext.define('Ext.fx.target.Target', {
26 constructor: function(target) {
28 this.id = this.getId();
32 return this.target.id;
35 </pre></pre></body></html>