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

qq.extend issue #24

Open
demonslord opened this issue Sep 28, 2012 · 2 comments
Open

qq.extend issue #24

demonslord opened this issue Sep 28, 2012 · 2 comments

Comments

@demonslord
Copy link

Hi, your function is does not merge as it should be...sub-object are not merged
e.g: object "classes"

Sorry for my bad english :(

Great plugin ;)

@demonslord
Copy link
Author

if you change/send just this options:

{ classes:{button:"anything"} }

This function:

qq.extend = function(first, second){
for (var prop in second){
first[prop] = second[prop];
}
};

will rewrite classes object.

Best Regards,
Alexander

@demonslord
Copy link
Author

Possible solution:

replace with $.extend(true,first,second)

Thanks

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