text: /*********************************************
   * skel/MoSyncApp/LocalFiles/js/ycomm-worker.js
   * YeAPF 0.8.49-124 built on 2016-08-22 14:19 (-3 DST)
   * Copyright (C) 2004-2016 Esteban Daniel Dortta - dortta@yahoo.com
   * 2016-08-22 14:19:47 (-3 DST)
   * First Version (C) 2014 - esteban daniel dortta - dortta@yahoo.com
  **********************************************/
  //# sourceURL=skel/MoSyncApp/LocalFiles/js/ycomm-worker.js
  
  importScripts('yloader.js');
  
  yCommWorker = function(e) {
    var data = e.data;
    switch(data.cmd) {
      case 'start' :
        {
          var callbackFunctionBackup = data.invoker.callbackFunction;
  
          /* invoker function cannot be filled
           * On worker, ycomm-ajax will always return a text (not xml) */
          data.invoker.callbackFunction = function(responseText) {
            var invokerImg = data.invoker;
            invokerImg.callbackFunction = callbackFunctionBackup;
            var dataPack = {
              cmd:'response',
              invoker: data.invoker,
              text: responseText
            };
            self.postMessage(dataPack);
          };
  
          if (typeof data.invoker.limits=='object')
            data.invoker.limits._start_ = 0;
  
          ycomm.invoke(
            data.invoker
          );
        }
    }
  }
  
  self.addEventListener('message', yCommWorker, false);
  