mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Migrate core/events/events_viewport.js to ES6 const/let
This commit is contained in:
@@ -77,7 +77,7 @@ Blockly.Events.ViewportChange.prototype.type = Blockly.Events.VIEWPORT_CHANGE;
|
||||
* @return {!Object} JSON representation.
|
||||
*/
|
||||
Blockly.Events.ViewportChange.prototype.toJson = function() {
|
||||
var json = Blockly.Events.ViewportChange.superClass_.toJson.call(this);
|
||||
const json = Blockly.Events.ViewportChange.superClass_.toJson.call(this);
|
||||
json['viewTop'] = this.viewTop;
|
||||
json['viewLeft'] = this.viewLeft;
|
||||
json['scale'] = this.scale;
|
||||
|
||||
Reference in New Issue
Block a user