X-Git-Url: http://review.tizen.org/git/?p=framework%2Fweb%2Fweb-ui-fw.git;a=blobdiff_plain;f=src%2Fwidgets%2Flayout-box%2Fjs%2Flayout-box.js;h=5eb6065fd91bca0fd7ebe2c8773624b6709bfeef;hp=a1c96894259911177626970f8d9ad5233d09d0cd;hb=1ebd5ca39c5801e5c53b0d339223713e898d0b10;hpb=5304d4c62a76f7517fedcc510afbebe2239173a5 diff --git a/src/widgets/layout-box/js/layout-box.js b/src/widgets/layout-box/js/layout-box.js old mode 100644 new mode 100755 index a1c9689..5eb6065 --- a/src/widgets/layout-box/js/layout-box.js +++ b/src/widgets/layout-box/js/layout-box.js @@ -96,54 +96,54 @@ // 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 ) );