Skip to content

Replace most jQuery methods#35

Closed
oskarrough wants to merge 1 commit intointercom:masterfrom
oskarrough:less-jquery
Closed

Replace most jQuery methods#35
oskarrough wants to merge 1 commit intointercom:masterfrom
oskarrough:less-jquery

Conversation

@oskarrough
Copy link

A work in progress to replace jQuery. See #2

I had to polyfill classList but perhaps this is where jQuery should be kept? Same with the click events.

let $body = Em.$(document.body);
const router = applicationInstance.container.lookup('router:main');
const rootURL = _getNormalisedRootUrl(router);
const $body = Em.$(document.body);
Copy link
Member

Choose a reason for hiding this comment

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

I think these should be lets: http://madhatted.com/2016/1/25/let-it-be

@GavinJoyce
Copy link
Member

@oskarrough thanks for working on this. I'm not sure if there is much value in removing jQuery however, especially as this addon is likely to be added to the ember framework at some point as url-for. I think the original issue should be closed.

@oskarrough
Copy link
Author

Sure, I agree — feel free to close the pull request if you'd rather skip it. Otherwise I'll just change the const/let. Let me know.

@GavinJoyce
Copy link
Member

Thanks, I'll close the issue and PR. Thanks for contributing 🍻

@GavinJoyce GavinJoyce closed this Apr 4, 2016
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