mirror of
https://github.com/google/blockly.git
synced 2026-01-19 23:07:21 +01:00
Fix setting value on undefined due to ordering issue after merge
This commit is contained in:
@@ -36,21 +36,6 @@ goog.require('goog.events');
|
||||
goog.require('goog.math.Rect');
|
||||
goog.require('goog.userAgent');
|
||||
|
||||
/**
|
||||
* Factor by which margin is multiplied to vertically separate blocks in flyout
|
||||
* [lyn, 10/06/13] introduced so can change in flydown subclass.)
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
Blockly.Flyout.prototype.VERTICAL_SEPARATION_FACTOR = 2;
|
||||
|
||||
/*
|
||||
* Wrapper function called when a resize occurs.
|
||||
* @type {Array.<!Array>}
|
||||
* @private
|
||||
*/
|
||||
Blockly.Flyout.prototype.onResizeWrapper_ = null;
|
||||
|
||||
/**
|
||||
* Class for a flyout.
|
||||
* @param {!Object} workspaceOptions Dictionary of options for the workspace.
|
||||
@@ -135,6 +120,21 @@ Blockly.Flyout = function(workspaceOptions) {
|
||||
this.startDragMouseX_ = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* Factor by which margin is multiplied to vertically separate blocks in flyout
|
||||
* [lyn, 10/06/13] introduced so can change in flydown subclass.)
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
Blockly.Flyout.prototype.VERTICAL_SEPARATION_FACTOR = 2;
|
||||
|
||||
/*
|
||||
* Wrapper function called when a resize occurs.
|
||||
* @type {Array.<!Array>}
|
||||
* @private
|
||||
*/
|
||||
Blockly.Flyout.prototype.onResizeWrapper_ = null;
|
||||
|
||||
/**
|
||||
* When a flyout drag is in progress, this is a reference to the flyout being
|
||||
* dragged. This is used by Flyout.terminateDrag_ to reset dragMode_.
|
||||
|
||||
Reference in New Issue
Block a user