[WIP] Merge trashcan.js

This commit is contained in:
Evan W. Patton
2016-09-28 22:14:01 -04:00
parent 5851a6deb9
commit 8947f113ce
2 changed files with 0 additions and 21 deletions

View File

@@ -26,7 +26,6 @@
goog.provide('Blockly.Trashcan');
goog.require('Blockly.Instrument'); // lyn's instrumentation code
goog.require('goog.Timer');
goog.require('goog.dom');
goog.require('goog.math');
@@ -259,10 +258,6 @@ Blockly.Trashcan.prototype.position = function() {
}
this.svgGroup_.setAttribute('transform',
'translate(' + this.left_ + ',' + this.top_ + ')');
var stop = new Date().getTime();
var timeDiff = stop - start;
Blockly.Instrument.stats.trashCanPositionCalls++; //***lyn
Blockly.Instrument.stats.trashCanPositionTime += timeDiff; //***lyn
};
/**

View File

@@ -1,16 +0,0 @@
***************
*** 218,223 ****
* @private
*/
Blockly.Trashcan.prototype.position_ = function() {
var metrics = this.workspace_.getMetrics();
if (!metrics) {
// There are no metrics available (workspace is probably not visible).
--- 219,225 ----
* @private
*/
Blockly.Trashcan.prototype.position_ = function() {
+ var start = new Date().getTime();
var metrics = this.workspace_.getMetrics();
if (!metrics) {
// There are no metrics available (workspace is probably not visible).