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

Remove lang.clone config from widget loader #736

Merged
merged 1 commit into from
Jun 28, 2017

Conversation

green3g
Copy link
Member

@green3g green3g commented Jun 26, 2017

Description

Widget config objects require dojo classes sometimes, like FeatureLayer and BasemapLayer. lang.clone tries to pass the object to the constructor if it encounters these classes, which produces several issues.

These config objects will only load if you specify a string as options though, I think it would be more flexible if we could pass objects with these classes in the config files directly, like viewer.js.

Checklist

  • grunt lint produces no error messages

@tmcgee
Copy link
Member

tmcgee commented Jun 28, 2017

you had me at

it would be more flexible

😄

@tmcgee tmcgee merged commit 3f58cfb into develop Jun 28, 2017
@green3g green3g deleted the fix/no-clone-widget-config branch June 30, 2017 12:59
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

Successfully merging this pull request may close these issues.

2 participants