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

Reduce code with wrapCommand #1351

Merged
merged 4 commits into from Oct 1, 2015
Merged

Reduce code with wrapCommand #1351

merged 4 commits into from Oct 1, 2015

Conversation

lqez
Copy link
Member

@lqez lqez commented Sep 30, 2015

There were several codes using beforeCommand and afterCommand in Editor.js.
They have same patterns so I removed it via wrapCommand wrapper.

* run given function between beforeCommand and afterCommand
* @param {Boolean} isPreventTrigger
*/
this.wrapCommand = function (fn) {
Copy link
Member

Choose a reason for hiding this comment

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

Please check comments.

hackerwins added a commit that referenced this pull request Oct 1, 2015
@hackerwins hackerwins merged commit 30ea820 into develop Oct 1, 2015
@hackerwins hackerwins deleted the minor/reduce-duplication branch October 1, 2015 02:48
@lqez
Copy link
Member Author

lqez commented Oct 1, 2015

Thank you for review!

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.

None yet

2 participants