Skip to content

Commit 33b4e32

Browse files
author
Alain Dumesny
committed
lint fix
1 parent 4a48862 commit 33b4e32

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/gridstack.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,23 @@
7575
return Utils.sortBy(nodes, function(n) { return (n.x + n.y * column); });
7676
},
7777

78-
createStylesheet: function(id, parent) {
79-
var style = document.createElement('style');
80-
style.setAttribute('type', 'text/css');
81-
style.setAttribute('data-gs-style-id', id);
82-
if (style.styleSheet) {
83-
style.styleSheet.cssText = '';
84-
} else {
85-
style.appendChild(document.createTextNode(''));
86-
}
87-
if (!parent) { parent = document.getElementsByTagName('head')[0]; } // default to head
88-
parent.insertBefore(style, parent.firstChild);
89-
return style.sheet;
90-
},
78+
createStylesheet: function(id, parent) {
79+
var style = document.createElement('style');
80+
style.setAttribute('type', 'text/css');
81+
style.setAttribute('data-gs-style-id', id);
82+
if (style.styleSheet) {
83+
style.styleSheet.cssText = '';
84+
} else {
85+
style.appendChild(document.createTextNode(''));
86+
}
87+
if (!parent) { parent = document.getElementsByTagName('head')[0]; } // default to head
88+
parent.insertBefore(style, parent.firstChild);
89+
return style.sheet;
90+
},
9191

92-
removeStylesheet: function(id) {
93-
$('STYLE[data-gs-style-id=' + id + ']').remove();
94-
},
92+
removeStylesheet: function(id) {
93+
$('STYLE[data-gs-style-id=' + id + ']').remove();
94+
},
9595

9696
insertCSSRule: function(sheet, selector, rules, index) {
9797
if (typeof sheet.insertRule === 'function') {

0 commit comments

Comments
 (0)