File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 128
128
this . min_widget_height = ( this . options . widget_margins [ 1 ] * 2 ) +
129
129
this . options . widget_base_dimensions [ 1 ] ;
130
130
131
+ this . generated_stylesheets = [ ] ;
131
132
this . $style_tags = $ ( [ ] ) ;
132
133
133
134
this . init ( ) ;
2752
2753
return false ;
2753
2754
}
2754
2755
2756
+ this . generated_stylesheets . push ( serialized_opts ) ;
2755
2757
Gridster . generated_stylesheets . push ( serialized_opts ) ;
2756
2758
2757
2759
/* generate CSS styles for cols */
2819
2821
* @return {Object } Returns the instance of the Gridster class.
2820
2822
*/
2821
2823
fn . remove_style_tags = function ( ) {
2824
+ var all_styles = Gridster . generated_stylesheets ;
2825
+ var ins_styles = this . generated_stylesheets ;
2826
+
2822
2827
this . $style_tags . remove ( ) ;
2828
+
2829
+ Gridster . generated_stylesheets = $ . map ( all_styles , function ( s ) {
2830
+ if ( $ . inArray ( s , ins_styles ) === - 1 ) { return s ; }
2831
+ } ) ;
2823
2832
} ;
2824
2833
2825
2834
You can’t perform that action at this time.
0 commit comments