fire action:widgets.loaded regardless of callback

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

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

Loading…
Cancel
Save