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

replace underscore with standalone lodash modules #108

Merged
merged 2 commits into from Mar 27, 2015

Conversation

Projects
None yet
4 participants
@dhritzkiv
Contributor

dhritzkiv commented Mar 27, 2015

@@ -137,13 +146,13 @@ _.extend(View.prototype, {
remove: function () {
var parsedBindings = this._parsedBindings;
if (this.el && this.el.parentNode) this.el.parentNode.removeChild(this.el);
if (this._subviews) _.chain(this._subviews).flatten().invoke('remove');

This comment has been minimized.

@dhritzkiv

dhritzkiv Mar 27, 2015

Contributor

Changed from using chain, as lodash's chain/base wrapper functionality is not available as a module. I figured it wasn't worth importing the whole lodash library for the ability to chain for one line, and it wasn't worth using the flattened array's forEach method, and then calling invoke on each subview passed.

@dhritzkiv

dhritzkiv Mar 27, 2015

Contributor

Changed from using chain, as lodash's chain/base wrapper functionality is not available as a module. I figured it wasn't worth importing the whole lodash library for the ability to chain for one line, and it wasn't worth using the flattened array's forEach method, and then calling invoke on each subview passed.

@latentflip

This comment has been minimized.

Show comment
Hide comment
@latentflip

latentflip Mar 27, 2015

Contributor

+1 lgtm

Contributor

latentflip commented Mar 27, 2015

+1 lgtm

wraithgar added a commit that referenced this pull request Mar 27, 2015

Merge pull request #108 from dhritzkiv/lodash
replace underscore with standalone lodash modules

@wraithgar wraithgar merged commit f87def3 into AmpersandJS:master Mar 27, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@wraithgar

This comment has been minimized.

Show comment
Hide comment
@wraithgar

wraithgar Mar 27, 2015

Member

Published as v7.2.1

Member

wraithgar commented Mar 27, 2015

Published as v7.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment