more cleanup - updating comments and deleting commented out stuff.

Esse commit está contido em:
Katelyn Mann
2016-11-03 13:01:15 -07:00
commit 3f4ea52230
2 arquivos alterados com 2 adições e 13 exclusões
-11
Ver Arquivo
@@ -735,14 +735,6 @@ Blockly.Flyout.prototype.show = function(xmlList) {
}
this.setVisible(true);
// This needs to be called before reflow because reflow calls resize on the
// target workspace which calls it on the flyout which calls it on the scrollbar
// and isVisible is false. The logic to decide how tall it is short-circuits
// when visibility is false. Setting the visiblilty to true doesn't try and
// resize the scrollbar.
// if (this.scrollbar_) {
// this.scrollbar_.setContainerVisible(true);
// }
// Create the blocks to be shown in this flyout.
var contents = [];
@@ -805,7 +797,6 @@ Blockly.Flyout.prototype.show = function(xmlList) {
} else {
this.width_ = 0;
}
this.reflow();
this.filterForCapacity_();
@@ -1218,8 +1209,6 @@ Blockly.Flyout.prototype.placeNewBlock_ = function(originBlock) {
}
// Figure out where the original block is on the screen, relative to the upper
// left corner of the main workspace.
//Blockly.getSvgXY_(svgRootOld, this.workspace_);
var element = svgRootOld;
var xyOld = Blockly.getInjectionDivXY_(svgRootOld);
if (targetWorkspace.isMutator) {
+2 -2
Ver Arquivo
@@ -57,7 +57,6 @@ Blockly.inject = function(container, opt_options) {
var svg = Blockly.createDom_(subContainer, options);
var wsDragSurface = new Blockly.WsDragSurfaceSvg(subContainer);
wsDragSurface.createDom();
var workspace = Blockly.createMainWorkspace_(svg, options, wsDragSurface);
Blockly.init_(workspace);
workspace.markFocused();
@@ -102,7 +101,6 @@ Blockly.createDom_ = function(container, options) {
'version': '1.1',
'class': 'blocklySvg'
}, container);
/*
<defs>
... filters go here ...
@@ -185,6 +183,8 @@ Blockly.createDom_ = function(container, options) {
* Create a main workspace and add it to the SVG.
* @param {!Element} svg SVG element with pattern defined.
* @param {!Blockly.Options} options Dictionary of options.
* @param {?Blockly.WsDragSurfaceSvg} dragSurface The surface to hold the
* workspace while dragging.
* @return {!Blockly.Workspace} Newly created main workspace.
* @private
*/