simple-style-loader
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -28,3 +28,3 @@ define(function (require, exports, module) {/* | ||
function clear (playerId) { | ||
function clear (playerId, selector) { | ||
var playerStyles = stylesInDom[playerId]; | ||
@@ -34,2 +34,12 @@ if (!playerStyles) { | ||
} | ||
if (selector) { | ||
// delete all rules for a specific selector | ||
var ruleObj = playerStyles[selector]; | ||
if (ruleObj) { | ||
for (var h = 0; h < ruleObj.parts.length; h += 1) { | ||
ruleObj.parts[h](); | ||
} | ||
} | ||
return; | ||
} | ||
var styleKeys = Object.keys(playerStyles); | ||
@@ -36,0 +46,0 @@ for (var i = 0; i < styleKeys.length; i += 1) { |
{ | ||
"name": "simple-style-loader", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "simplified style loader module for webpack based on style-loader by Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "scripts": {}, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
162
6920
6