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

userCtx.roles must be checked for isEmpty #3

Open
cmadsen opened this issue Oct 7, 2011 · 0 comments
Open

userCtx.roles must be checked for isEmpty #3

cmadsen opened this issue Oct 7, 2011 · 0 comments

Comments

@cmadsen
Copy link

cmadsen commented Oct 7, 2011

In IE8 the following fails (in function initWidget(){) with a object does not such property

if (userCtx.roles.indexOf("_admin") != -1) {

To fix it add a isEmpty check

if (!$.isEmptyObject(userCtx.roles) && userCtx.roles.indexOf("_admin") != -1) {
drobbins added a commit to drobbins/couchdb-login-jquery that referenced this issue Nov 23, 2011
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

1 participant