Gallery3d: Fix null reference error
authorWonseop Kim <wonseop.kim@samsung.com>
Fri, 26 Apr 2013 10:26:47 +0000 (19:26 +0900)
committerhjnim.kim <hjnim.kim@samsung.com>
Fri, 3 May 2013 06:29:06 +0000 (15:29 +0900)
Fix an error that is occurred when the widget is destoryed while playing an animation

Change-Id: I148a9a5e4f39d166fdfb5b513341a301ef5b0567

src/js/widgets/jquery.mobile.tizen.gallery3d.js

index 832c69e..dd16a86 100644 (file)
@@ -714,6 +714,8 @@ define( [ "components/imageloader", "components/motionpath", "components/webgl"
                                return;
                        }
 
+                       self._stop();
+
                        canvas = canvas || self._canvas;
 
                        $( self._nodes ).each( function ( i ) {