fire action:widgets.loaded regardless of callback

v1.18.x
psychobunny 11 years ago
parent bf63c927c6
commit 9c2bb027d3

@ -66,9 +66,11 @@
function checkCallback() { function checkCallback() {
numLocations--; numLocations--;
if (numLocations < 0 && callback) { if (numLocations < 0) {
callback();
$(window).trigger('action:widgets.loaded', {}); $(window).trigger('action:widgets.loaded', {});
if (typeof callback === 'function') {
callback();
}
} }
} }

Loading…
Cancel
Save