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 jQuery from app #768

Merged
merged 2 commits into from
Mar 9, 2018
Merged

Remove jQuery from app #768

merged 2 commits into from
Mar 9, 2018

Conversation

RobbieTheWagner
Copy link
Member

@RobbieTheWagner RobbieTheWagner commented Mar 8, 2018

Also had to switch to a new context menu plugin. This should get us closer to #590

screen shot 2018-03-08 at 10 45 34 am

Also had to switch to a new context menu plugin. This should get us closer to #590
@@ -14,6 +14,9 @@ module.exports = {
env: {
browser: true
},
globals: {
basicContext: false
Copy link
Member

Choose a reason for hiding this comment

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

🤔 what is basicContext?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is the new contextMenu plugin we are using.

.on(`mouseup.${namespace} mouseleave.${namespace}`, () => {
this.stopDragging();
});
document.body.addEventListener(`mousemove.${namespace}`, this._mouseMoveHandler);
Copy link
Member

Choose a reason for hiding this comment

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

These also need to be cleaned up inwillDestroy or willDestroyElement

Copy link
Member Author

Choose a reason for hiding this comment

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

willDestroyElement calls this.stopDragging(); which has the removeEventListener calls. Did I mess them up?

Copy link
Member

Choose a reason for hiding this comment

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

Ahh, I see, thank you for explaining!

package.json Outdated
@@ -36,6 +36,7 @@
"aws-sdk": "^2.3.3",
"babel-eslint": "^8.2.2",
"babel-plugin-transform-es2015-modules-amd": "^6.24.0",
"basiccontext": "^3.5.1"
Copy link
Member

Choose a reason for hiding this comment

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

missing a comma here

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@teddyzeenny
Copy link
Contributor

Thanks! Can you please add a screenshot of the new context menu?

@RobbieTheWagner
Copy link
Member Author

@teddyzeenny I added a screenshot 👍

@RobbieTheWagner RobbieTheWagner merged commit 3d82924 into master Mar 9, 2018
@RobbieTheWagner RobbieTheWagner deleted the remove-jquery branch March 9, 2018 13:02
@acorncom acorncom mentioned this pull request Mar 28, 2018
cyril-sf pushed a commit to cyril-sf/ember-inspector that referenced this pull request Mar 30, 2022
* Remove jQuery from app

Also had to switch to a new context menu plugin. This should get us closer to emberjs#590

* Add missing comma
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.

4 participants