Fixing list removal
[fnpeditor.git] / fnpjs / layout.js
index 99b2e58..5fe61cc 100644 (file)
@@ -12,6 +12,12 @@ define(['libs/jquery-1.9.1.min', 'libs/underscore-min'], function($ ,_) {
                     view.onShow();\r
             });\r
         };\r
+        this.dom.onHide = function() {\r
+            _.values(layout.views).forEach(function(view) {\r
+                if(view.onHide)\r
+                    view.onHide();\r
+            });\r
+        };\r
         \r
     };\r
     \r