ember-blockly
Advanced tools
Comparing version 0.1.39 to 0.1.40
@@ -148,12 +148,12 @@ import Ember from 'ember'; | ||
workspace.addChangeListener(() => { | ||
var _this = this; | ||
Ember.run(function () { | ||
Ember.run(() => { | ||
if (this.get('disableNotConnectedToMainBlock')) { | ||
workspace.addChangeListener(Blockly.Events.disableOrphans); | ||
} | ||
}); | ||
if (_this.get('disableNotConnectedToMainBlock')) { | ||
workspace.addChangeListener(Blockly.Events.disableOrphans); | ||
} | ||
_this.onUpdate(); | ||
_this._onresize(); | ||
Ember.run(() => { | ||
workspace.addChangeListener(() => { | ||
this.onUpdate(); | ||
this._onresize(); | ||
}); | ||
@@ -160,0 +160,0 @@ }); |
@@ -6,4 +6,2 @@ import Ember from 'ember'; | ||
createCustomBlock(name, options, callback_to_change_block) { | ||
let previousStatement = true; | ||
let nextStatement = true; | ||
options.colour = options.color || '#4453ff'; | ||
@@ -42,3 +40,3 @@ | ||
var variable_object = Blockly.MyLanguage.valueToCode(block, variable_name) || block.getFieldValue(variable_name) || null; | ||
var variable_object = Blockly.JavaScript.statementToCode(block, variable_name) || Blockly.MyLanguage.valueToCode(block, variable_name) || block.getFieldValue(variable_name) || null; | ||
@@ -139,3 +137,7 @@ code = code.replace(regex, variable_object); | ||
return Blockly.Blocks[new_name]; | ||
}, | ||
setStartHat(state) { | ||
Blockly.BlockSvg.START_HAT = state; | ||
} | ||
}); |
{ | ||
"name": "ember-blockly", | ||
"version": "0.1.39", | ||
"version": "0.1.40", | ||
"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
977319
6301