Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16)

Unified Diff: app/app.js

Issue 7132061: Support for service positions from server
Patch Set: Support for service positions from server Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « [revision details] ('k') | app/models/models.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/app.js
=== modified file 'app/app.js'
--- app/app.js 2013-01-18 18:54:21 +0000
+++ app/app.js 2013-01-19 14:57:23 +0000
@@ -325,6 +325,7 @@
Y.log(evt, 'debug', 'App: Database changed');
var self = this;
+ var active = this.get('activeView');
// Compare endpoints map against db to see if it needs to be changed.
var updateNeeded = this.db.services.some(function(service) {
@@ -346,7 +347,11 @@
}
// Redispatch to current view to update.
- this.dispatch();
+ if (active && active.name === 'EnvironmentView') {
+ active.update();
+ } else {
+ this.dispatch();
+ }
},
/**
« no previous file with comments | « [revision details] ('k') | app/models/models.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b