X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/08cd85f3bcdc04446ffa0650801b38ebc7eee70f..103c278d4f2eae78854cbfcfc0a25f2a0b1c4c47:/fnpjs/layout.js?ds=sidebyside diff --git a/fnpjs/layout.js b/fnpjs/layout.js index 99b2e58..5fe61cc 100644 --- a/fnpjs/layout.js +++ b/fnpjs/layout.js @@ -12,6 +12,12 @@ define(['libs/jquery-1.9.1.min', 'libs/underscore-min'], function($ ,_) { view.onShow(); }); }; + this.dom.onHide = function() { + _.values(layout.views).forEach(function(view) { + if(view.onHide) + view.onHide(); + }); + }; };