Include the pubsub dependency
In order to use the PubSub
library from within a widget, you
need to include pubsub
as a dependency in the widget’s JavaScript module
with a statement similar to the following:
//---------------------------------------------
// DEPENDENCIES
//---------------------------------------------
['pubsub'],