rulesenginejs
Advanced tools
Comparing version 1.13.0 to 1.14.0
{ | ||
"name": "rulesenginejs", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"description": "A simple front-end rules engine", | ||
@@ -5,0 +5,0 @@ "main": "dist/rulesengine.min.js", |
@@ -76,12 +76,12 @@ # RulesEngineJS | ||
```javascript | ||
RE.evaluate('active', {status: 1}) | ||
.done(function() { | ||
alert('Status is active'); | ||
}) | ||
.fail(function() { | ||
alert('Status is not active'); | ||
}); | ||
// alerts "Status is active" | ||
``` | ||
```javascript | ||
RE.evaluate('active', {status: 1}) | ||
.done(function() { | ||
alert('Status is active'); | ||
}) | ||
.fail(function() { | ||
alert('Status is not active'); | ||
}); | ||
// alerts "Status is active" | ||
``` | ||
@@ -107,2 +107,4 @@ For more examples, refer to the tests. | ||
// Triggers no other events and does not modify state (idempotent) | ||
// ... more methods under the hood ... | ||
``` |
66073
109