Commit fe8bf242 authored by neil.fraser@gmail.com's avatar neil.fraser@gmail.com

Fix missing 'this' params from r1708.

git-svn-id: http://blockly.googlecode.com/svn/trunk@1709 c400ca83-b69d-9dd7-9705-49c6b8615e23
parent 8275273a
......@@ -5,6 +5,9 @@
<title>Blockly Apps</title>
<link rel="stylesheet" type="text/css" href="common.css">
<style>
body {
margin: 0 10%;
}
td {
padding: 1ex;
}
......
This diff is collapsed.
......@@ -1083,7 +1083,7 @@ Blockly.Block.prototype.setParent = function(newParent) {
Blockly.Block.prototype.getDescendants = function() {
var blocks = [this];
for (var child, x = 0; child = this.childBlocks_[x]; x++) {
blocks.push.apply(child.getDescendants());
blocks.push.apply(blocks, child.getDescendants());
}
return blocks;
};
......@@ -1423,7 +1423,7 @@ Blockly.Block.prototype.setCollapsed = function(collapsed) {
var renderList = [];
// Show/hide the inputs.
for (var x = 0, input; input = this.inputList[x]; x++) {
renderList.push.apply(input.setVisible(!collapsed));
renderList.push.apply(renderList, input.setVisible(!collapsed));
}
var COLLAPSED_INPUT_NAME = '_TEMP_COLLAPSED_INPUT';
......
......@@ -675,7 +675,7 @@ Blockly.Connection.prototype.unhideAll = function() {
connections = block.getConnections_(true);
}
for (var c = 0; c < connections.length; c++) {
renderList.push.apply(connections[c].unhideAll());
renderList.push.apply(renderList, connections[c].unhideAll());
}
if (renderList.length == 0) {
// Leaf block.
......
......@@ -231,7 +231,7 @@ Blockly.Workspace.prototype.getTopBlocks = function(ordered) {
Blockly.Workspace.prototype.getAllBlocks = function() {
var blocks = this.getTopBlocks(false);
for (var x = 0; x < blocks.length; x++) {
blocks.push.apply(blocks,blocks[x].getChildren());
blocks.push.apply(blocks, blocks[x].getChildren());
}
return blocks;
};
......
......@@ -36,7 +36,7 @@ goog.provide('Blockly.Xml');
* @return {!Element} XML document.
*/
Blockly.Xml.workspaceToDom = function(workspace) {
var width;
var width; // Not used in LTR.
if (Blockly.RTL) {
width = workspace.getMetrics().viewWidth;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment