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

Cannot use reserved words (eg, "class") as template variable names #152

Open
bendavis78 opened this issue Sep 23, 2011 · 1 comment
Open

Comments

@bendavis78
Copy link

Case in point ( http://jsfiddle.net/savid/Cu88v/ )

$(document).ready(function(){
    var myDiv = $('#mytmpl').tmpl({'class':'foo'}).appendTo($('body'));
});

In a recent version of Chrome (14.0.835.186), this raises the error: "Uncaught SyntaxError: Unexpected reserved word".

Obviously the workaround is simple, but debugging this problem is very difficult. It might help if the plugin raised a more informative error.

@rdworth
Copy link
Contributor

rdworth commented Oct 8, 2011

Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.

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

2 participants