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

coreLoad() E_INVALID_PAR_TYPE error #45

Open
clazette opened this issue Sep 22, 2016 · 1 comment
Open

coreLoad() E_INVALID_PAR_TYPE error #45

clazette opened this issue Sep 22, 2016 · 1 comment

Comments

@clazette
Copy link

I am loading 9 CLDR JSON data files. During the call to Globalize.load, when cldrjs.load is called, the validateTypePlainObject check is failing. Each $.getJSON call returns an array containing three items. Items at index positions 0 and 2 are objects, the item at index position 1 is a string of, in this case, "success". Therefore, when the second iteration of the loop occurs, and the isPlainObject function is called within the validatePlainTypeObject call, "success" obviously causes the validation to fail because it's not an object.

What am I doing incorrectly?

image

image

@clazette
Copy link
Author

It looks like it's not cldr.js' fault. It appears to be this code from one of the examples. Now, I just need to resolve the issue.

// Normalize $.get results, we only need the JSON, not the request statuses. return [].slice.apply(arguments, [0]).map(function (result) { return result[0]; });

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