@@ -16,9 +16,9 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
1616
1717 _init : function ( ) {
1818
19- var self = this , o = this . options ;
19+ var self = this , o = this . options ;
2020 this . element . addClass ( "ui-resizable" ) ;
21-
21+
2222 $ . extend ( this , {
2323 _aspectRatio : ! ! ( o . aspectRatio ) ,
2424 aspectRatio : o . aspectRatio ,
@@ -64,7 +64,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
6464
6565 // fix handlers offset
6666 this . _proportionallyResize ( ) ;
67-
67+
6868 }
6969
7070 this . handles = o . handles || ( ! $ ( '.ui-resizable-handle' , this . element ) . length ? "e,s,se" : { n : '.ui-resizable-n' , e : '.ui-resizable-e' , s : '.ui-resizable-s' , w : '.ui-resizable-w' , se : '.ui-resizable-se' , sw : '.ui-resizable-sw' , ne : '.ui-resizable-ne' , nw : '.ui-resizable-nw' } ) ;
@@ -74,10 +74,10 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
7474 var n = this . handles . split ( "," ) ; this . handles = { } ;
7575
7676 for ( var i = 0 ; i < n . length ; i ++ ) {
77-
77+
7878 var handle = $ . trim ( n [ i ] ) , hname = 'ui-resizable-' + handle ;
7979 var axis = $ ( '<div class="ui-resizable-handle ' + hname + '"></div>' ) ;
80-
80+
8181 // increase zIndex of sw, se, ne, nw axis
8282 //TODO : this modifies original option
8383 if ( / s w | s e | n e | n w / . test ( handle ) ) axis . css ( { zIndex : ++ o . zIndex } ) ;
@@ -95,11 +95,11 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
9595 }
9696
9797 this . _renderAxis = function ( target ) {
98-
98+
9999 target = target || this . element ;
100100
101101 for ( var i in this . handles ) {
102-
102+
103103 if ( this . handles [ i ] . constructor == String )
104104 this . handles [ i ] = $ ( this . handles [ i ] , this . element ) . show ( ) ;
105105
@@ -124,19 +124,19 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
124124 target . css ( padPos , padWrapper ) ;
125125
126126 this . _proportionallyResize ( ) ;
127-
127+
128128 }
129-
129+
130130 //TODO: What's that good for? There's not anything to be executed left
131131 if ( ! $ ( this . handles [ i ] ) . length )
132132 continue ;
133-
133+
134134 }
135135 } ;
136136
137137 //TODO: make renderAxis a prototype function
138138 this . _renderAxis ( this . element ) ;
139-
139+
140140 this . _handles = $ ( '.ui-resizable-handle' , this . element ) ;
141141
142142 if ( o . disableSelection )
@@ -171,11 +171,11 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
171171
172172 //Initialize the mouse interaction
173173 this . _mouseInit ( ) ;
174-
174+
175175 } ,
176176
177177 destroy : function ( ) {
178-
178+
179179 this . _mouseDestroy ( ) ;
180180
181181 var _destroy = function ( exp ) {
@@ -196,9 +196,9 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
196196 } )
197197 ) . end ( ) . remove ( ) ;
198198 }
199-
199+
200200 _destroy ( this . originalElement ) ;
201-
201+
202202 } ,
203203
204204 _mouseCapture : function ( event ) {
@@ -216,7 +216,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
216216
217217 var o = this . options , iniPos = this . element . position ( ) , el = this . element ,
218218 num = function ( v ) { return parseInt ( v , 10 ) || 0 ; } , ie6 = $ . browser . msie && $ . browser . version < 7 ;
219-
219+
220220 this . resizing = true ;
221221 this . documentScroll = { top : $ ( document ) . scrollTop ( ) , left : $ ( document ) . scrollLeft ( ) } ;
222222
@@ -327,7 +327,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
327327
328328 if ( this . _helper ) this . helper . remove ( ) ;
329329 return false ;
330-
330+
331331 } ,
332332
333333 _updateCache : function ( data ) {
@@ -386,44 +386,44 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
386386 } ,
387387
388388 _proportionallyResize : function ( ) {
389-
389+
390390 var o = this . options ;
391391 if ( ! this . proportionallyResize . length ) return ;
392392 var element = this . helper || this . element ;
393-
393+
394394 for ( var i = 0 ; i < this . proportionallyResize . length ; i ++ ) {
395-
395+
396396 var prel = this . proportionallyResize [ i ] ;
397-
397+
398398 if ( ! this . borderDif ) {
399399 var b = [ prel . css ( 'borderTopWidth' ) , prel . css ( 'borderRightWidth' ) , prel . css ( 'borderBottomWidth' ) , prel . css ( 'borderLeftWidth' ) ] ,
400400 p = [ prel . css ( 'paddingTop' ) , prel . css ( 'paddingRight' ) , prel . css ( 'paddingBottom' ) , prel . css ( 'paddingLeft' ) ] ;
401-
401+
402402 this . borderDif = $ . map ( b , function ( v , i ) {
403403 var border = parseInt ( v , 10 ) || 0 , padding = parseInt ( p [ i ] , 10 ) || 0 ;
404404 return border + padding ;
405405 } ) ;
406406 }
407-
407+
408408 if ( $ . browser . msie && ! ( ! ( $ ( element ) . is ( ':hidden' ) || $ ( element ) . parents ( ':hidden' ) . length ) ) )
409409 continue ;
410-
410+
411411 prel . css ( {
412412 height : ( element . height ( ) - this . borderDif [ 0 ] - this . borderDif [ 2 ] ) || 0 ,
413413 width : ( element . width ( ) - this . borderDif [ 1 ] - this . borderDif [ 3 ] ) || 0
414414 } ) ;
415-
415+
416416 } ;
417417
418418 } ,
419419
420420 _renderProxy : function ( ) {
421-
421+
422422 var el = this . element , o = this . options ;
423423 this . elementOffset = el . offset ( ) ;
424424
425425 if ( this . _helper ) {
426-
426+
427427 this . helper = this . helper || $ ( '<div style="overflow:hidden;"></div>' ) ;
428428
429429 // fix ie6 offset TODO: This seems broken
@@ -447,7 +447,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
447447 } else {
448448 this . helper = this . element ;
449449 }
450-
450+
451451 } ,
452452
453453 _change : {
@@ -538,7 +538,7 @@ $.extend($.ui.resizable, {
538538$ . ui . plugin . add ( "resizable" , "alsoResize" , {
539539
540540 start : function ( event , ui ) {
541-
541+
542542 var o = ui . options , self = $ ( this ) . data ( "resizable" ) ,
543543
544544 _store = function ( exp ) {
@@ -730,7 +730,7 @@ $.ui.plugin.add("resizable", "containment", {
730730$ . ui . plugin . add ( "resizable" , "ghost" , {
731731
732732 start : function ( event , ui ) {
733-
733+
734734 var o = ui . options , self = $ ( this ) . data ( "resizable" ) , pr = o . proportionallyResize , cs = self . size ;
735735
736736 self . ghost = self . originalElement . clone ( ) ;
0 commit comments