diff --git a/share/webapp/js/ng.js b/share/webapp/js/ng.js index dc3e1cbae..4aed6505d 100644 --- a/share/webapp/js/ng.js +++ b/share/webapp/js/ng.js @@ -189,6 +189,9 @@ mc.ng.timeout = function(timeout, closure) timeout = undefined; } + if(typeof(closure) != "function") + closure = () => {}; + //TODO: XXX: arbitrary let $timeout = mc.ng.timeout.$timeout; return $timeout(closure, timeout);