| Index: chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
|
| diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js b/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
|
| index a83ef30ea09ca787a67c6ac658469cb65ab024e5..032db45daee1b4c1564848405220477c4faf36e2 100644
|
| --- a/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
|
| +++ b/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
|
| @@ -42,7 +42,6 @@ var ui = (function() {
|
| * scene.flush();
|
| */
|
| class Scene {
|
| -
|
| constructor() {
|
| this.idIndex = api.getContentElementId() + 1;
|
| this.commands = [];
|
| @@ -64,10 +63,7 @@ var ui = (function() {
|
| addElement(element) {
|
| var id = this.idIndex++;
|
| element.id = id;
|
| - this.commands.push({
|
| - 'type': api.Command.ADD_ELEMENT,
|
| - 'data': element
|
| - });
|
| + this.commands.push({'type': api.Command.ADD_ELEMENT, 'data': element});
|
| this.elements.add(id);
|
| return id;
|
| }
|
| @@ -78,10 +74,7 @@ var ui = (function() {
|
| updateElement(id, update) {
|
| // To-do: Make sure ID exists.
|
| update.id = id;
|
| - this.commands.push({
|
| - 'type': api.Command.UPDATE_ELEMENT,
|
| - 'data': update
|
| - });
|
| + this.commands.push({'type': api.Command.UPDATE_ELEMENT, 'data': update});
|
| }
|
|
|
| /*
|
| @@ -89,10 +82,8 @@ var ui = (function() {
|
| */
|
| removeElement(id) {
|
| // To-do: Make sure ID exists.
|
| - this.commands.push({
|
| - 'type': api.Command.REMOVE_ELEMENT,
|
| - 'data': {'id': id}
|
| - });
|
| + this.commands.push(
|
| + {'type': api.Command.REMOVE_ELEMENT, 'data': {'id': id}});
|
| this.elements.delete(id);
|
| }
|
|
|
| @@ -102,10 +93,8 @@ var ui = (function() {
|
| addAnimation(animation) {
|
| var id = this.idIndex++;
|
| animation.id = id;
|
| - this.commands.push({
|
| - 'type': api.Command.ADD_ANIMATION,
|
| - 'data': animation
|
| - });
|
| + this.commands.push(
|
| + {'type': api.Command.ADD_ANIMATION, 'data': animation});
|
| this.animations[id] = animation.meshId;
|
| return id;
|
| }
|
|
|