fix code style

This commit is contained in:
Justineo
2015-02-02 17:24:41 +08:00
parent 093e2ea42c
commit 197619ab2a
2 changed files with 3 additions and 3 deletions

View File

@@ -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 });
}
}

View File

@@ -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;