mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Remove all goog.asserts and goog.isXxx
First step to reducing Closure’s footprint.
This commit is contained in:
@@ -28,7 +28,6 @@ goog.provide('Blockly.FieldTextInput');
|
||||
|
||||
goog.require('Blockly.Field');
|
||||
goog.require('Blockly.Msg');
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.dom');
|
||||
goog.require('goog.dom.TagName');
|
||||
goog.require('goog.userAgent');
|
||||
@@ -300,7 +299,9 @@ Blockly.FieldTextInput.prototype.onHtmlInputChange_ = function(_e) {
|
||||
*/
|
||||
Blockly.FieldTextInput.prototype.validate_ = function() {
|
||||
var valid = true;
|
||||
goog.asserts.assertObject(Blockly.FieldTextInput.htmlInput_);
|
||||
if (!Blockly.FieldTextInput.htmlInput_) {
|
||||
throw TypeError('htmlInput not defined');
|
||||
}
|
||||
var htmlInput = Blockly.FieldTextInput.htmlInput_;
|
||||
if (this.sourceBlock_) {
|
||||
valid = this.callValidator(htmlInput.value);
|
||||
|
||||
Reference in New Issue
Block a user