New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency to 'window' variable to make it runable on iOS/Android/JAVA #119

Closed
hackmar opened this Issue Jun 4, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@hackmar
Copy link

hackmar commented Jun 4, 2014

hi, i want use your rule engine in iOS, Android and JAVA without a browser window. When i load the nools.js i get the exception "Can't find variable: window".

On JAVA i fixed that with the env.js script to simulate the window. And i replaced some java reserved words like static, throws, byte,.. After that, it runs in JAVA.

Have you a workaround that the window variable is not needed? I use on iOS the JSContext to load and execute the code.

Best regards,
Marco

@doug-martin doug-martin self-assigned this Jun 23, 2014

doug-martin added a commit to doug-martin/nools that referenced this issue Feb 25, 2015

v0.4.0
* Fix for issue noolsjs#122 referencing defined class within another defined class
   * Also fixes accessing scoped functions within a defined class.
* Fix for issue noolsjs#119 window was removed from the nools.js file now it is called in the current scope of `this`.
* Allow session.halt even for `match()` noolsjs#143 - @raymondfeng
   * Now if you call `halt()` even if you did not call `matchUntilHalt()`
* Now you can use a function as a constraint (Only applies to rules defined programatically) noolsjs#142 - @raymondfeng
* You can now define types using scope [noolsjs#142](noolsjs#142) - @raymondfeng
* Fix for issue, is the dsl you do not have to escape `\` characters noolsjs#123

@doug-martin doug-martin referenced this issue Feb 25, 2015

Merged

v0.4.0 #144

doug-martin added a commit to doug-martin/nools that referenced this issue Feb 25, 2015

v0.4.0
* Fix for issue noolsjs#122 referencing defined class within another defined class
   * Also fixes accessing scoped functions within a defined class.
* Fix for issue noolsjs#119 window was removed from the nools.js file now it is called in the current scope of `this`.
* Allow session.halt even for `match()` noolsjs#143 - @raymondfeng
   * Now if you call `halt()` even if you did not call `matchUntilHalt()`
* Now you can use a function as a constraint (Only applies to rules defined programatically) noolsjs#142 - @raymondfeng
* You can now define types using scope [noolsjs#142](noolsjs#142) - @raymondfeng
* Fix for issue, is the dsl you do not have to escape `\` characters noolsjs#123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment