4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-fx-target-Target'>/**
19 </span> * @class Ext.fx.target.Target
21 This class specifies a generic target for an animation. It provides a wrapper around a
22 series of different types of objects to allow for a generic animation API.
23 A target can be a single object or a Composite object containing other objects that are
24 to be animated. This class and it's subclasses are generally not created directly, the
25 underlying animation will create the appropriate Ext.fx.target.Target object by passing
26 the instance to be animated.
28 The following types of objects can be animated:
30 - {@link Ext.fx.target.Component Components}
31 - {@link Ext.fx.target.Element Elements}
32 - {@link Ext.fx.target.Sprite Sprites}
37 Ext.define('Ext.fx.target.Target', {
41 <span id='Ext-fx-target-Target-method-constructor'> /**
42 </span> * Creates new Target.
43 * @param {Ext.Component/Ext.Element/Ext.draw.Sprite} target The object to be animated
45 constructor: function(target) {
47 this.id = this.getId();
51 return this.target.id;