ember-blockly
Advanced tools
Comparing version 0.1.42 to 0.1.43
@@ -253,15 +253,16 @@ import Ember from 'ember'; | ||
onUpdate(event) { | ||
let xml = Blockly.Xml.workspaceToDom(this.get('workspaceElement')); | ||
let xml_text = Blockly.Xml.domToText(xml); | ||
this.sendAction("onChangeWorkspace", xml_text); | ||
Ember.run(() => { | ||
let xml = Blockly.Xml.workspaceToDom(this.get('workspaceElement')); | ||
let xml_text = Blockly.Xml.domToText(xml); | ||
this.sendAction("onChangeWorkspace", xml_text); | ||
if (this.get('showCode')) { | ||
try { | ||
let code = Blockly.JavaScript.workspaceToCode(this.get('workspaceElement')); | ||
this.set('javascriptCode', js_beautify(code)); | ||
} catch (e) { | ||
console.warn("No se puede generar el código. Esto seguramente se produce porque la solución tiene un bloque inexistente.", e); | ||
if (this.get('showCode')) { | ||
try { | ||
let code = Blockly.JavaScript.workspaceToCode(this.get('workspaceElement')); | ||
this.set('javascriptCode', js_beautify(code)); | ||
} catch (e) { | ||
console.warn("No se puede generar el código. Esto seguramente se produce porque la solución tiene un bloque inexistente.", e); | ||
} | ||
} | ||
} | ||
}); | ||
}, | ||
@@ -268,0 +269,0 @@ |
{ | ||
"name": "ember-blockly", | ||
"version": "0.1.42", | ||
"version": "0.1.43", | ||
"description": "The default blueprint for ember-cli addons.", | ||
@@ -5,0 +5,0 @@ "directories": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
977458
6308