Skip to content

Commit 536b688

Browse files
issues with rule filter are fixed. Also internal function issues fixed.
1 parent b681b33 commit 536b688

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/node-rules.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
this.register(rules);
1414
}
1515

16-
this.sync();
1716
return this;
1817

1918
}
@@ -43,7 +42,7 @@
4342

4443

4544
RuleEngine.prototype.sync = function() {
46-
45+
4746
this.activeRules = this.rules.filter(function(a) {
4847

4948
if(typeof(a.on) === "undefined"){
@@ -96,7 +95,7 @@
9695
} else {
9796

9897
process.nextTick(function(){
99-
R.next();
98+
API.next();
10099
});
101100

102101
}
@@ -122,7 +121,7 @@
122121

123122
lastSession = _.clone(session);
124123
process.nextTick(function(){
125-
R.restart();
124+
API.restart();
126125
});
127126

128127
} else {
@@ -136,7 +135,7 @@
136135
}
137136

138137
};
139-
138+
140139
if (x < _rules.length && complete === false) {
141140

142141
var _rule = _rules[x].condition;

0 commit comments

Comments
 (0)