From: hjnim.kim Date: Tue, 16 Apr 2013 03:32:55 +0000 (+0900) Subject: Gallery: jslint error fix X-Git-Tag: accepted/tizen_2.1/20130425.023924~1^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01fc7c169a6ddd18bc0a64d8c86c56890c240a65;p=platform%2Fframework%2Fweb%2Fweb-ui-fw.git Gallery: jslint error fix jslint error has been fixed (e.g. if { } problem ) Change-Id: I6ebf16db28b70f8623d6f37b8da44a6c52cdc70d --- diff --git a/src/js/widgets/jquery.mobile.tizen.gallery.js b/src/js/widgets/jquery.mobile.tizen.gallery.js index 43cb244..3e86fea 100644 --- a/src/js/widgets/jquery.mobile.tizen.gallery.js +++ b/src/js/widgets/jquery.mobile.tizen.gallery.js @@ -477,16 +477,19 @@ define( [ ], function ( ) { _hidePrevNext : function() { var self = this; - if( self.next_img ) + if( self.next_img ) { self.next_img.css( "visibility", "hidden" ); - if( self.prev_img ) + } + if( self.prev_img ) { self.prev_img.css( "visibility", "hidden" ); + } }, _hideCur : function() { var self = this; - if( self.cur_img ) + if( self.cur_img ) { self.cur_img.css( "visibility", "hidden" ); + } }, _moveLeft : function ( $ele , value , duration ) { var translate, @@ -509,10 +512,11 @@ define( [ ], function ( ) { "transform": translate}; if( transition !== "" ) { cssArray["-webkit-transition"] = transition ; - if( value == "0px" ) + if( value == "0px" ) { $ele.one( 'webkitTransitionEnd', self._hidePrevNext ); - else + } else { $ele.one( 'webkitTransitionEnd', self._hideCur ); + } } if( value == "0px" ) { $ele.css( "visibility", "visible" );