Remove closure base file dependency (#2976)

* Trim down closure's base dependency even further by removing the dependency on closure's base file.
This commit is contained in:
Sam El-Husseini
2019-09-11 17:30:51 -07:00
committed by GitHub
parent 09d2a167f9
commit 8ab51c8639
162 changed files with 706 additions and 959 deletions

View File

@@ -7,7 +7,7 @@
<script src="/storage.js"></script>
<script src="factory.js"></script>
<script src="../../blockly_compressed.js"></script>
<script src="../../msg/messages.js"></script>
<script src="../../msg/js/en.js"></script>
<script src="blocks.js"></script>
<style>
html, body {

View File

@@ -28,7 +28,9 @@ goog.provide('CustomFields.FieldPitch');
goog.require('Blockly.FieldTextInput');
goog.require('Blockly.utils.math');
goog.require('Blockly.utils.object');
var CustomFields = CustomFields || {};
/**
* Class for an editable pitch field.
@@ -39,7 +41,7 @@ goog.require('Blockly.utils.math');
CustomFields.FieldPitch = function(text) {
CustomFields.FieldPitch.superClass_.constructor.call(this, text);
};
goog.inherits(CustomFields.FieldPitch, Blockly.FieldTextInput);
Blockly.utils.object.inherits(CustomFields.FieldPitch, Blockly.FieldTextInput);
/**
* Construct a FieldPitch from a JSON arg object.

View File

@@ -32,8 +32,10 @@ goog.require('Blockly.Field');
goog.require('Blockly.fieldRegistry');
goog.require('Blockly.utils');
goog.require('Blockly.utils.dom');
goog.require('Blockly.utils.object');
goog.require('Blockly.utils.Size');
var CustomFields = CustomFields || {};
// Generally field's values should be optional, and have logical defaults.
// If this is not possible (for example image fields can't have logical
@@ -66,7 +68,7 @@ CustomFields.FieldTurtle = function(
this, value, opt_validator);
this.size_ = new Blockly.utils.Size(0, 0);
};
goog.inherits(CustomFields.FieldTurtle, Blockly.Field);
Blockly.utils.object.inherits(CustomFields.FieldTurtle, Blockly.Field);
// This allows the field to be constructed using a JSON block definition.
CustomFields.FieldTurtle.fromJson = function(options) {

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Blockly Demo: Custom Turtle Field</title>
<script src="../../../blockly_compressed.js"></script>
<script src="../../../blockly_uncompressed.js"></script>
<script src="blocks.js"></script>
<script src="field_turtle.js"></script>
<script src="../../../msg/js/en.js"></script>