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'],

Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices