From f7c2e8dda9eb8362189203fe9ad0f4b6f635aa84 Mon Sep 17 00:00:00 2001 From: Niels Vandekeybus Date: Wed, 1 May 2019 10:43:22 +0200 Subject: [PATCH] remove restartable from blueprint --- .../files/addon/components/editor-plugins/__name__-card.js | 2 +- .../files/addon/services/rdfa-editor-__name__-plugin.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blueprints/editor-plugin/files/addon/components/editor-plugins/__name__-card.js b/blueprints/editor-plugin/files/addon/components/editor-plugins/__name__-card.js index 7d37213..58a8777 100644 --- a/blueprints/editor-plugin/files/addon/components/editor-plugins/__name__-card.js +++ b/blueprints/editor-plugin/files/addon/components/editor-plugins/__name__-card.js @@ -46,8 +46,8 @@ export default Component.extend({ actions: { insert(){ - let mappedLocation = this.get('hintsRegistry').updateLocationToCurrentIndex(this.get('hrId'), this.get('location')); this.get('hintsRegistry').removeHintsAtLocation(this.get('location'), this.get('hrId'), 'editor-plugins/<%= dasherizedModuleName %>-card'); + const mappedLocation = this.get('hintsRegistry').updateLocationToCurrentIndex(this.get('hrId'), this.get('location')); this.get('editor').replaceTextWithHTML(...mappedLocation, this.get('info').htmlString); } } diff --git a/blueprints/editor-plugin/files/addon/services/rdfa-editor-__name__-plugin.js b/blueprints/editor-plugin/files/addon/services/rdfa-editor-__name__-plugin.js index 44847f7..9566b61 100644 --- a/blueprints/editor-plugin/files/addon/services/rdfa-editor-__name__-plugin.js +++ b/blueprints/editor-plugin/files/addon/services/rdfa-editor-__name__-plugin.js @@ -19,7 +19,7 @@ const RdfaEditor<%= classifiedModuleName %>Plugin = Service.extend({ }, /** - * Restartable task to handle the incoming events from the editor dispatcher + * task to handle the incoming events from the editor dispatcher * * @method execute * @@ -45,7 +45,7 @@ const RdfaEditor<%= classifiedModuleName %>Plugin = Service.extend({ if(cards.length > 0){ hintsRegistry.addHints(hrId, this.get('who'), cards); } - }).restartable(), + }), /** * Given context object, tries to detect a context the plugin can work on