Skip to content

Commit 1ed21d5

Browse files
committed
port applyStyle
1 parent 7162816 commit 1ed21d5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,9 @@
281281
}
282282
},
283283
applyStyle: function(name) {
284-
$('#djDebug [data-' + name + ']').each(function() {
285-
var css = {};
286-
css[name] = $(this).data(name);
287-
$(this).css(css);
284+
var selector = '#djDebug [data-' + name + ']';
285+
document.querySelectorAll(selector).forEach(function(element) {
286+
element.style[name] = element.getAttribute('data-' + name);
288287
});
289288
}
290289
};

0 commit comments

Comments
 (0)