X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b7266f76b76a0a67000144d2780a8f64967fafb4..756c5554a2b6a23eb95a7e538b4fe45f06b644e5:/fnpjs/layout.js 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(); + }); + }; };