upload tizen1.0 source
[framework/web/web-ui-fw.git] / src / widgets / layout-box / js / layout-box.js
old mode 100644 (file)
new mode 100755 (executable)
index a1c9689..5eb6065
 //   Set to false to hide scrollbars on the container's scrollview.
 //   Has no effect is scrollable=false
 
-(function ($, undefined) {
+(function ( $, undefined ) {
 
-// hbox
-$.widget("tizen.layouthbox", $.tizen.jlayoutadaptor, {
-    fixed: {
-        type: 'flexGrid',
-        rows: 1,
-        direction: 'x',
-        initSelector: ':jqmData(layout="hbox")'
-    },
+       // hbox
+       $.widget( "tizen.layouthbox", $.tizen.jlayoutadaptor, {
+               fixed: {
+                       type: 'flexGrid',
+                       rows: 1,
+                       direction: 'x',
+                       initSelector: ':jqmData(layout="hbox")'
+               },
 
-    _create: function () {
-        if (!this.options.hgap) {
-            this.options.hgap = 0;
-        }
+               _create: function () {
+                       if ( !this.options.hgap ) {
+                               this.options.hgap = 0;
+                       }
 
-        $.tizen.jlayoutadaptor.prototype._create.apply(this, arguments);
-    }
-});
+                       $.tizen.jlayoutadaptor.prototype._create.apply( this, arguments );
+               }
+       } );
 
-$(document).bind("pagecreate", function (e) {
-    $($.tizen.layouthbox.prototype.fixed.initSelector, e.target)
-    .not(":jqmData(role='none'), :jqmData(role='nojs')")
-    .layouthbox();
-});
+       $( document ).bind( "pagecreate", function ( e ) {
+               $( $.tizen.layouthbox.prototype.fixed.initSelector, e.target )
+                       .not( ":jqmData(role='none'), :jqmData(role='nojs')" )
+                       .layouthbox();
+       } );
 
-// vbox
-$.widget("tizen.layoutvbox", $.tizen.jlayoutadaptor, {
-    fixed: {
-        type: 'flexGrid',
-        columns: 1,
-        direction: 'y',
-        initSelector: ':jqmData(layout="vbox")'
-    },
+       // vbox
+       $.widget( "tizen.layoutvbox", $.tizen.jlayoutadaptor, {
+               fixed: {
+                       type: 'flexGrid',
+                       columns: 1,
+                       direction: 'y',
+                       initSelector: ':jqmData(layout="vbox")'
+               },
 
-    _create: function () {
-        if (!this.options.vgap) {
-            this.options.vgap = 0;
-        }
+               _create: function () {
+                       if ( !this.options.vgap ) {
+                               this.options.vgap = 0;
+                       }
 
-        $.tizen.jlayoutadaptor.prototype._create.apply(this, arguments);
-    }
-});
+                       $.tizen.jlayoutadaptor.prototype._create.apply( this, arguments );
+               }
+       } );
 
-$(document).bind("pagecreate", function (e) {
-    $($.tizen.layoutvbox.prototype.fixed.initSelector, e.target)
-    .not(":jqmData(role='none'), :jqmData(role='nojs')")
-    .layoutvbox();
-});
+       $( document ).bind( "pagecreate", function ( e ) {
+               $( $.tizen.layoutvbox.prototype.fixed.initSelector, e.target )
+                       .not( ":jqmData(role='none'), :jqmData(role='nojs')" )
+                       .layoutvbox();
+       } );
 
-})(jQuery);
+}( jQuery ) );