This commit is contained in:
rachel-fenichel
2016-03-29 15:22:45 -07:00
parent e2f1a6c843
commit be3c761fc0
2 changed files with 7 additions and 4 deletions

View File

@@ -26,8 +26,8 @@
goog.provide('Blockly.inject');
goog.require('Blockly.Options');
goog.require('Blockly.Css');
goog.require('Blockly.Options');
goog.require('Blockly.WorkspaceSvg');
goog.require('goog.dom');
goog.require('goog.ui.Component');

View File

@@ -32,8 +32,7 @@ goog.provide('Blockly.Options');
* is unspecified.
* @param {!Object} options Dictionary of options. Specification:
* https://developers.google.com/blockly/installation/overview#configuration
* @return {!Blockly.Options} Object containing a dicitonary of normalized
* options.
* @constructor
*/
Blockly.Options = function(options) {
var readOnly = !!options['readOnly'];
@@ -108,6 +107,10 @@ Blockly.Options = function(options) {
this.realtimeOptions = realtimeOptions;
};
/**
* @type {Blockly.Workspace} the parent of the current workspace, or null if
* there is no parent workspace.
**/
Blockly.Options.prototype.parentWorkspace = null;
/**
@@ -127,7 +130,7 @@ Blockly.Options.prototype.getMetrics = function() { return null; };
* Parse the user-specified zoom options, using reasonable defaults where
* behaviour is unspecified. See zoom documentation:
* https://developers.google.com/blockly/installation/zoom
* @param {!Object} options Dictionary of options options.
* @param {!Object} options Dictionary of options.
* @return {!Object} A dictionary of normalized options.
* @private
*/