Another set of missing semicolons
[fnpeditor.git] / fnpjs / layout.js
index 99b2e58..d5fa098 100644 (file)
@@ -12,6 +12,12 @@ define(['libs/jquery-1.9.1.min', 'libs/underscore-min'], function($ ,_) {
                     view.onShow();\r
             });\r
         };\r
                     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
         \r
     };\r
     \r
@@ -24,7 +30,7 @@ define(['libs/jquery-1.9.1.min', 'libs/underscore-min'], function($ ,_) {
     };\r
     \r
     Layout.prototype.getAsView = function() {\r
     };\r
     \r
     Layout.prototype.getAsView = function() {\r
-        return this.dom\r
+        return this.dom;\r
     };\r
     \r
     return {Layout: Layout};\r
     };\r
     \r
     return {Layout: Layout};\r