Skip to content
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

ES5 support? #10

Closed
kokujin opened this issue Dec 13, 2017 · 2 comments
Closed

ES5 support? #10

kokujin opened this issue Dec 13, 2017 · 2 comments

Comments

@kokujin
Copy link

kokujin commented Dec 13, 2017

Is there an ES5 example somewhere? Thanks

var AbilityBuilder = require('casl');
AbilityBuilder.define... // Does not exist
@Leestex
Copy link

Leestex commented Dec 13, 2017

@kokujin here is a correct way to use it:

var casl = require('casl');

casl.AbilityBuilder.define()

or

var AbilityBuilder = require('casl').AbilityBuilder;

AbilityBuilder.define()

@stalniy
Copy link
Owner

stalniy commented Dec 18, 2017

Added a separate page explaining support for different js dialects with examples: https://stalniy.github.io/casl/abilities/2017/12/18/dialect-support.html

Let me know if you need more information.

Thanks for using CASL!

@stalniy stalniy closed this as completed Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants