ONOS-2325 - GUI -- Table View rows now flash yellow when their information updates. Minor device details panel bug fix.

Change-Id: I78eb0f90af00ce4484255d7e9e0c3c8a10a0eda7
diff --git a/web/gui/src/main/webapp/app/view/device/device.js b/web/gui/src/main/webapp/app/view/device/device.js
index ecfcc98..0e16dec 100644
--- a/web/gui/src/main/webapp/app/view/device/device.js
+++ b/web/gui/src/main/webapp/app/view/device/device.js
@@ -250,6 +250,7 @@
     .directive('deviceDetailsPanel', ['$rootScope', '$window',
     function ($rootScope, $window) {
         return function (scope) {
+            var unbindWatch;
 
             function heightCalc() {
                 pStartY = fs.noPxStyle(d3.select('.tabular-header'), 'height')
@@ -268,7 +269,7 @@
                 }
             });
 
-            $rootScope.$watchCollection(
+            unbindWatch = $rootScope.$watchCollection(
                 function () {
                     return {
                         h: $window.innerHeight,
@@ -283,6 +284,7 @@
             );
 
             scope.$on('$destroy', function () {
+                unbindWatch();
                 ps.destroyPanel(pName);
             });
         };