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

Change linterViews to be an ES6 Set rather than an Array. #429

Merged
merged 1 commit into from
Feb 18, 2015

Conversation

bolinfest
Copy link

This makes it possible to remove a dependency on lodash in init.coffee.

Curiously, this was my first justified use of the
Embedded JavaScript feature in
CoffeeScript because I needed to use the ES6 iteration idiom for Set,
for which there is no equivalent in CoffeeScript.

This also updates deactivate() to null out references so they can be garbage collected.
This is good practice if a package toggles between activated and deactivated.

This makes it possible to remove a dependency on `lodash` in `init.coffee`.

Curiously, this was my first justified use of the
[Embedded JavaScript](http://coffeescript.org/#embedded) feature in
CoffeeScript because I needed to use the ES6 iteration idiom for `Set`,
for which there is no equivalent in CoffeeScript.
@dmnd
Copy link

dmnd commented Feb 18, 2015

I've never had to use that embedded javascript feature either. Interesting!

dmnd added a commit that referenced this pull request Feb 18, 2015
Change linterViews to be an ES6 Set rather than an Array.
@dmnd dmnd merged commit 4e4d287 into steelbrain:master Feb 18, 2015
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