Today I was trying to debug this:
Exception from Tracker afterFlush function:
debug.js:41 TypeError: object is not a function
at nb (jquery.dataTables.min.js:46)
at mb (jquery.dataTables.min.js:29)
at va (jquery.dataTables.min.js:44)
at HTMLTableElement.<anonymous> (jquery.dataTables.min.js:91)
at Function.jQuery.extend.each (jquery.js:384)
at jQuery.fn.jQuery.each (jquery.js:136)
at p [as dataTable] (jquery.dataTables.min.js:81)
at h.fn.DataTable (jquery.dataTables.min.js:156)
at null.<anonymous> (tabular.js:231)
at view.js:191
It only happens when using meteor-admin and happens on every page. I eventually realised that if I removed this code from my lib/ folder
Option = {}
then everything is fine.
Does this mean that third party packages are creating global variables that can conflict with each other? For now, I’m putting all my constants inside my own namespace (as I should) but it would worrying for potential conflict to occur out of my control re atmosphere packages.
If this is not the case, why is it only happening in the meteor-admin pages?