File tree Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change 19
19
*/
20
20
( function ( $ , undefined ) {
21
21
22
- var sizeRelatedOptions = {
23
- buttons : true ,
24
- height : true ,
25
- maxHeight : true ,
26
- maxWidth : true ,
27
- minHeight : true ,
28
- minWidth : true ,
29
- width : true
30
- } ,
31
- resizableRelatedOptions = {
32
- maxHeight : true ,
33
- maxWidth : true ,
34
- minHeight : true ,
35
- minWidth : true
36
- } ;
37
-
38
22
$ . widget ( "ui.dialog" , {
39
23
version : "@VERSION" ,
40
24
options : {
@@ -83,6 +67,23 @@ $.widget( "ui.dialog", {
83
67
resizeStop : null
84
68
} ,
85
69
70
+ sizeRelatedOptions : {
71
+ buttons : true ,
72
+ height : true ,
73
+ maxHeight : true ,
74
+ maxWidth : true ,
75
+ minHeight : true ,
76
+ minWidth : true ,
77
+ width : true
78
+ } ,
79
+
80
+ resizableRelatedOptions : {
81
+ maxHeight : true ,
82
+ maxWidth : true ,
83
+ minHeight : true ,
84
+ minWidth : true
85
+ } ,
86
+
86
87
_create : function ( ) {
87
88
this . originalCss = {
88
89
display : this . element [ 0 ] . style . display ,
@@ -579,10 +580,10 @@ $.widget( "ui.dialog", {
579
580
$ . each ( options , function ( key , value ) {
580
581
that . _setOption ( key , value ) ;
581
582
582
- if ( key in sizeRelatedOptions ) {
583
+ if ( key in that . sizeRelatedOptions ) {
583
584
resize = true ;
584
585
}
585
- if ( key in resizableRelatedOptions ) {
586
+ if ( key in that . resizableRelatedOptions ) {
586
587
resizableOptions [ key ] = value ;
587
588
}
588
589
} ) ;
You can’t perform that action at this time.
0 commit comments