Skip to content

Conversation

nscyclone
Copy link
Contributor

Closes #736.

return window.location.hash.replace(/^#/, '')
}

export function throttle (callback, limit) {
Copy link
Contributor

Choose a reason for hiding this comment

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

you could use lodash.throttle instead https://lodash.com/docs/4.17.4#throttle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, @dignifiedquire!
I thought about it but for some reason didn't check whether we include the whole lodash or just some of its parts and decided to reinvent a wheel. I've updated the PR now.

@nscyclone
Copy link
Contributor Author

Sorry for bothering, are there any more changes needed for this PR?
Or maybe the proposed changes are unwanted and I should close it?
/cc @dignifiedquire @josevalim

@josevalim josevalim merged commit 69b20de into elixir-lang:master Jun 26, 2017
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@josevalim
Copy link
Member

Sorry for dropping the ball on this one and thanks for the ping! ❤️

@nscyclone nscyclone deleted the fix/736 branch June 26, 2017 20:50
aphillipo pushed a commit to aphillipo/ex_doc that referenced this pull request Jul 5, 2017
aphillipo pushed a commit to aphillipo/ex_doc that referenced this pull request Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants