Skip to content

Commit bf6d19d

Browse files
committed
afterUpdate call: fixed undefined opt
1 parent 9b4a750 commit bf6d19d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/jquery.mapael.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@
172172
$.fn.mapael.updateElem(elemOptions, plots[id], $tooltip, animDuration);
173173
}
174174

175-
opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots, options);
175+
if( typeof opt != 'undefined' )
176+
opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots, options);
176177
});
177178

178179
// Handle resizing of the map
@@ -863,4 +864,4 @@
863864
, areas : {}
864865
, plots : {}
865866
};
866-
})(jQuery);
867+
})(jQuery);

0 commit comments

Comments
 (0)