X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/efe36f4f1b5df351eeb4d40a54c3900cf9a7079b..45c6e40d4312a3bc53fb0c64574d9e5b1f298193:/src/fnpjs/layout.js?ds=sidebyside diff --git a/src/fnpjs/layout.js b/src/fnpjs/layout.js index c1d110e..68d4738 100644 --- a/src/fnpjs/layout.js +++ b/src/fnpjs/layout.js @@ -8,14 +8,16 @@ define(['libs/jquery', 'libs/underscore'], function($ ,_) { this.dom.onShow = function() { _.values(layout.views).forEach(function(view) { - if(view.onShow) + if(view.onShow) { view.onShow(); + } }); }; this.dom.onHide = function() { _.values(layout.views).forEach(function(view) { - if(view.onHide) + if(view.onHide) { view.onHide(); + } }); };