Artur Arseniev
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
4 additions and
4 deletions
-
src/canvas/view/CanvasView.js
-
src/commands/view/CreateComponent.js
-
src/dom_components/model/Component.js
-
src/selector_manager/view/ClassTagsView.js
|
|
|
@ -312,7 +312,7 @@ module.exports = Backbone.View.extend({ |
|
|
|
view.el.id = id; |
|
|
|
view.scriptContainer.html(''); |
|
|
|
// In editor, I make use of setTimeout as during the append process of elements
|
|
|
|
// those will not be available immediatly, therefore 'item' variable
|
|
|
|
// those will not be available immediately, therefore 'item' variable
|
|
|
|
const script = document.createElement('script'); |
|
|
|
script.innerHTML = ` |
|
|
|
setTimeout(function() { |
|
|
|
|
|
|
|
@ -12,7 +12,7 @@ module.exports = _.extend({}, SelectPosition, { |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* Start with enabling to select position and listening to start drawning |
|
|
|
* Start with enabling to select position and listening to start drawing |
|
|
|
* @private |
|
|
|
* */ |
|
|
|
enable(...args) { |
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ const avoidInline = em => em && em.getConfig('avoidInlineStyle'); |
|
|
|
|
|
|
|
/** |
|
|
|
* The Component object represents a single node of our template structure, so when you update its properties the changes are |
|
|
|
* immediatly reflected on the canvas and in the code to export (indeed, when you ask to export the code we just go through all |
|
|
|
* immediately reflected on the canvas and in the code to export (indeed, when you ask to export the code we just go through all |
|
|
|
* the tree of nodes). |
|
|
|
* An example on how to update properties: |
|
|
|
* ```js
|
|
|
|
|
|
|
|
@ -163,7 +163,7 @@ module.exports = Backbone.View.extend({ |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* Udpate selector helper |
|
|
|
* Update selector helper |
|
|
|
* @return {this} |
|
|
|
* @private |
|
|
|
*/ |
|
|
|
|