mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
fix code style
This commit is contained in:
@@ -99,7 +99,7 @@ var Parser = function Parser(context, imports, fileInfo) {
|
||||
|
||||
if (context.pluginManager) {
|
||||
var preProcessors = context.pluginManager.getPreProcessors();
|
||||
for(var i = 0; i < preProcessors.length; i++) {
|
||||
for (var i = 0; i < preProcessors.length; i++) {
|
||||
str = preProcessors[i].process(str, { context: context, imports: imports, fileInfo: fileInfo });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ PluginManager.prototype.addVisitor = function(visitor) {
|
||||
*/
|
||||
PluginManager.prototype.addPreProcessor = function(preProcessor, priority) {
|
||||
var indexToInsertAt;
|
||||
for(indexToInsertAt = 0; indexToInsertAt < this.preProcessors.length; indexToInsertAt++) {
|
||||
for (indexToInsertAt = 0; indexToInsertAt < this.preProcessors.length; indexToInsertAt++) {
|
||||
if (this.preProcessors[indexToInsertAt].priority >= priority) {
|
||||
break;
|
||||
}
|
||||
@@ -78,7 +78,7 @@ PluginManager.prototype.addFileManager = function(manager) {
|
||||
*/
|
||||
PluginManager.prototype.getPreProcessors = function() {
|
||||
var preProcessors = [];
|
||||
for(var i = 0; i < this.preProcessors.length; i++) {
|
||||
for (var i = 0; i < this.preProcessors.length; i++) {
|
||||
preProcessors.push(this.preProcessors[i].preProcessor);
|
||||
}
|
||||
return preProcessors;
|
||||
|
||||
Reference in New Issue
Block a user