mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #24 from nlemoine/master
afterUpdate call: fixed undefined opt
This commit is contained in:
@ -172,7 +172,8 @@
|
||||
$.fn.mapael.updateElem(elemOptions, plots[id], $tooltip, animDuration);
|
||||
}
|
||||
|
||||
opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots, options);
|
||||
if( typeof opt != 'undefined' )
|
||||
opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots, options);
|
||||
});
|
||||
|
||||
// Handle resizing of the map
|
||||
@ -863,4 +864,4 @@
|
||||
, areas : {}
|
||||
, plots : {}
|
||||
};
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
Reference in New Issue
Block a user