runtime_library/callback-handler.js
/**
   *  Class that maintains the callback array and
   *  references to the original postMessage and onmessage
   */
Class that maintains the callback array and
references to the original postMessage and onmessage
Class that maintains the callback array and references to the original postMessage and onmessage
function CallbackHandler(context) {
    var self = this;
    self._postMessage_original = context.postMessage;
    self._onmessage_original   = context.onmessage;
    self._callback_array = [];
  }
function CallbackHandler ( context ) { var self = this ; self . _postMessage_original = context . postMessage ; self . _onmessage_original = context . onmessage ; self . _callback_array = [ ] ; }
Class that maintains the callback array and
  references to the original postMessage and onmessage
Class that maintains the callback array and references to the original postMessage and onmessage
// Store original functions