Call per page clean up if that is defined. 28/128/1
authorlakshya <lakshya@cisco.com>
Wed, 10 Apr 2013 17:59:46 +0000 (10:59 -0700)
committerlakshya <lakshya@cisco.com>
Wed, 10 Apr 2013 17:59:46 +0000 (10:59 -0700)
Signed-off-by: lakshya <lakshya@cisco.com>
opendaylight/web/root/src/main/resources/js/one.js

index 51e8ea9..d517c7f 100644 (file)
@@ -371,6 +371,9 @@ one.main.menu = {
 
 one.main.page = {
     load : function(page) {
 
 one.main.page = {
     load : function(page) {
+               if (one.f !== undefined && one.f.cleanUp !== undefined) {
+                   one.f.cleanUp();
+               }       
         // clear page related
         delete one.f;
         $('.dashlet', '#main').empty();
         // clear page related
         delete one.f;
         $('.dashlet', '#main').empty();