Skip to content

Commit f07759a

Browse files
Merge pull request #72 from drejahl/patch-1
Update README.md
2 parents 416cdd4 + d443eb2 commit f07759a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ var R = new RuleEngine();
6868

6969
/* Add a rule */
7070
var rule = {
71-
"condition": (R) => {
71+
"condition": function(R) {
7272
console.log(this);
7373
R.when(this.transactionTotal < 500);
7474
},
75-
"consequence": (R) => {
75+
"consequence": function(R) {
7676
this.result = false;
7777
this.reason = "The transaction was blocked as it was less than 500";
7878
R.stop();

0 commit comments

Comments
 (0)