Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2211)

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui_scene.js

Issue 2592143002: First cut of JS closure compiler use for VR HTML UI. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..e87deaca8ce92e18d4dd98895dc1ec3b4e3cf8d1 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
@@ -80,7 +80,7 @@ var ui = (function() {
update.id = id;
this.commands.push({
'type': api.Command.UPDATE_ELEMENT,
- 'data': update
+ 'data': update.properties
});
}
@@ -133,7 +133,7 @@ var ui = (function() {
purge() {
var ids = Object.keys(this.animations);
for (let id_key of ids) {
- var id = parseInt(id_key);
+ var id = parseInt(id_key, 10);
this.removeAnimation(id);
}
var ids = this.elements.values();

Powered by Google App Engine
This is Rietveld 408576698