Gallery: jslint error fix
authorhjnim.kim <hjnim.kim@samsung.com>
Tue, 16 Apr 2013 03:32:55 +0000 (12:32 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Tue, 16 Apr 2013 04:38:23 +0000 (13:38 +0900)
jslint error has been fixed
(e.g. if { } problem )

Change-Id: I6ebf16db28b70f8623d6f37b8da44a6c52cdc70d

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

index 43cb244..3e86fea 100644 (file)
@@ -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" );