Skip to content

Commit 0420486

Browse files
committed
change inejct
1 parent 26cdfa7 commit 0420486

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/Regular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ Regular.implement({
491491

492492
Regular.prototype.inject = function(){
493493
_.log("use $inject instead of inject", "error");
494-
this.$inejct.apply(this, arguments);
494+
this.$inject.apply(this, arguments);
495495
}
496496

497497

test/spec/test-lexer.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var Lexer = require_lib("parser/Lexer.js");
2+
var config = require_lib("config.js");
23

34
/**
45
* setup template
@@ -67,6 +68,12 @@ describe("Lexer under mode 1 and 2", function(){
6768

6869
})
6970

71+
it("config should work", function(){
72+
config.END = "}}";
73+
config.BEGIN = "{{";
74+
75+
})
76+
7077
})
7178

7279

0 commit comments

Comments
 (0)