File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 96
96
attrValue = '' ;
97
97
98
98
if ( option . mode == 'min' && actualValue >= value ) {
99
- attrValue += ' ' + option . value ;
99
+ attrValue += option . value ;
100
100
}
101
101
102
102
if ( option . mode == 'max' && actualValue <= value ) {
103
- attrValue += ' ' + option . value ;
103
+ attrValue += option . value ;
104
104
}
105
105
106
106
if ( ! attrValues [ attrName ] ) attrValues [ attrName ] = '' ;
107
- attrValues [ attrName ] += attrValue ;
107
+ if ( attrValue && - 1 === ( ' ' + attrValues [ attrName ] + ' ' ) . indexOf ( ' ' + attrValue + ' ' ) ) {
108
+ attrValues [ attrName ] += ' ' + attrValue ;
109
+ }
108
110
}
109
111
110
112
for ( var k in attributes ) {
Original file line number Diff line number Diff line change 95
95
if ( setupSensor ( ) ) {
96
96
element . resizedAttached . call ( ) ;
97
97
}
98
- }
98
+ } ;
99
99
element . resizeSensor = document . createElement ( 'div' ) ;
100
100
element . resizeSensor . className = 'resize-sensor' ;
101
101
var style =
125
125
height = element . resizeSensor . offsetHeight ;
126
126
127
127
if ( x != width ) {
128
- firstStyle . width = width - 1 + 'px' ;
129
- lastStyle . width = width + 1 + 'px' ;
128
+ firstStyle . width = ( width - 1 ) + 'px' ;
129
+ lastStyle . width = ( width + 1 ) + 'px' ;
130
130
change = true ;
131
131
x = width ;
132
132
}
133
133
if ( y != height ) {
134
- firstStyle . height = height - 1 + 'px' ;
135
- lastStyle . height = height + 1 + 'px' ;
134
+ firstStyle . height = ( height - 1 ) + 'px' ;
135
+ lastStyle . height = ( height + 1 ) + 'px' ;
136
136
change = true ;
137
137
y = height ;
138
138
}
You can’t perform that action at this time.
0 commit comments