Fix setting value on undefined due to ordering issue after merge

This commit is contained in:
Evan W. Patton
2016-10-02 13:22:39 -04:00
parent d0dc64ce76
commit cbe48ff1df

View File

@@ -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_.