-
28 Apr 2011 6:06 AM #1
[FIXED-EXTJSIV-1783][4.0.0] Ext.Util.Animate.stopAnimation() does not return eLEMENT
[FIXED-EXTJSIV-1783][4.0.0] Ext.Util.Animate.stopAnimation() does not return eLEMENT
That should be "Ext.core.Element" obviously.
Ext.Util.Animate.stopAnimation() does not return Ext.core.Element as documented. (The documentation for stopAnimation() also has an erroneous @deprecated tag.)
Code:Ext.onReady(function() { var cmp = Ext.create('Ext.Component', { height: 200, width: 300, html: 'I am a component.', renderTo: Ext.getBody() }); console.log(cmp.animate({ to: { opacity: 0, } }).animate({ to: { opacity: 1 } }).stopAnimation()); // Console logs "undefined" });
-
28 Apr 2011 7:24 AM #2
I've fixed this up. FYI it doesn't always return an Element, it returns the current type of thing you're animating (could be a component, sprite, etc).
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-EXTJSIV-1779]tab still change for return false
By liquidsnake in forum Ext:BugsReplies: 4Last Post: 28 Apr 2011, 6:27 AM -
[FIXED-EXTJSIV-641][B1] WebStorageProxy getNextId() always return 1
By uzver in forum Ext:BugsReplies: 0Last Post: 5 Apr 2011, 2:36 AM -
[FIXED-EXTJSIV-224] http 204 (No Content) return error
By chrisbrianolsen in forum Ext:BugsReplies: 1Last Post: 31 Mar 2011, 8:49 PM -
[FIXED-EXTJSIV-272] Ext.util.Observable as mixin serious limitation
By gevik in forum Ext:BugsReplies: 7Last Post: 24 Mar 2011, 12:06 AM -
[FIXED-361][3.0.3] Element.scroll not working without animate
By danh2000 in forum Ext 3.x: BugsReplies: 8Last Post: 20 Nov 2009, 3:43 AM


Reply With Quote