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 can-util as a dependency #454

Merged
merged 1 commit into from
May 21, 2018
Merged

Remove can-util as a dependency #454

merged 1 commit into from
May 21, 2018

Conversation

chasenlehara
Copy link
Member

This replaces all the code that was using can-util with equivalent usages of can-reflect and can-assign.

This replaces all the code that was using can-util with equivalent usages of can-reflect and can-assign.
@@ -125,7 +123,7 @@ var behaviors = {
// For each attribute, we start the binding process,
// and save what's returned to be used when the `viewModel` is created,
// the element is removed, or the attribute changes values.
each(makeArray(el.attributes), function(node) {
canReflect.each(el.attributes || [], function(node) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makeArray() isn’t needed because can-reflect.each() can handle a NamedNodeMap.

@chasenlehara chasenlehara merged commit 6df2531 into master May 21, 2018
@chasenlehara chasenlehara deleted the remove-can-util branch May 21, 2018 23:33
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.

None yet

2 participants