Skip to content

Commit

Permalink
Allow namespaced imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcboeker committed Feb 25, 2012
1 parent 617d45a commit 5a2bdbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/less/tree/ruleset.js
Expand Up @@ -17,14 +17,14 @@ tree.Ruleset.prototype = {
env.frames.unshift(ruleset);

// Evaluate imports
if (ruleset.root || ruleset.allowImports) {
// if (ruleset.root || ruleset.allowImports) {
for (var i = 0; i < ruleset.rules.length; i++) {
if (ruleset.rules[i] instanceof tree.Import) {
Array.prototype.splice
.apply(ruleset.rules, [i, 1].concat(ruleset.rules[i].eval(env)));
}
}
}
// }

// Store the frames around mixin definitions,
// so they can be evaluated like closures when the time comes.
Expand Down

0 comments on commit 5a2bdbc

Please sign in to comment.