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

Bug: Ionic-1.0.0-beta2 - Parse error for lines with $attr.class on Android 2.3 #1228

Closed
elacca opened this issue Apr 29, 2014 · 2 comments
Closed

Comments

@elacca
Copy link

elacca commented Apr 29, 2014

Hi!

The beta2 still has the parse error bug at the lines with $attr.class on Android 2.3.

04-29 16:37:55.937: D/CordovaLog(1242): file:///android_asset/www/Ionic-1.0.0-beta2/js/ionic.bundle.js: Line 36885 : SyntaxError: Parse error
04-29 16:37:55.937: E/Web Console(1242): SyntaxError: Parse error at file:///android_asset/www/Ionic-1.0.0-beta2/js/ionic.bundle.js:36885

The problem is coming from the ".class" property, as class is a future reserved word. You can change the dot notation to square bracket notation : ['class']

@ajoslin
Copy link
Contributor

ajoslin commented Apr 29, 2014

Fixed! Thanks.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants