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(); |
+ } |
}, |
/** |