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
Layout.prototype.getAsView = function() {\r
- return this.dom\r
+ return this.dom;\r
};\r
\r
return {Layout: Layout};\r