mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Automatic commit Sat Dec 14 03:00:02 PST 2013
This commit is contained in:
@@ -30,6 +30,7 @@ goog.provide('Blockly.Field');
|
||||
// TODO(scr): Fix circular dependencies
|
||||
// goog.require('Blockly.Block');
|
||||
goog.require('Blockly.BlockSvg');
|
||||
goog.require('goog.asserts');
|
||||
|
||||
|
||||
/**
|
||||
@@ -54,6 +55,17 @@ Blockly.Field = function(text) {
|
||||
this.visible_ = true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Clone this Field. This must be implemented by all classes derived from
|
||||
* Field. Since this class should not be instantiated, calling this method
|
||||
* throws an exception.
|
||||
* @throws {goog.assert.AssertionError}
|
||||
*/
|
||||
Blockly.Field.prototype.clone = function() {
|
||||
goog.asserts.fail('There should never be an instance of Field, ' +
|
||||
'only its derived classes.');
|
||||
};
|
||||
|
||||
/**
|
||||
* Non-breaking space.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user