bp323/3akai-ux — comment on commit 0925e1405ea06cbe25df6ce3ba9b064a645309e9
File: dev/lib/sakai/sakai.api.widgets.js line 674
By nicolaasmatthijs:

@bp323: I don't think this is right place to initialize this, as one widget could have multiple js files calling the informOnLoad function. This would cause these to be initialized multiple time. It should only be done once for every widget, either after the source HTML is added to the DOM or when all JS files for a widget have been loaded.