code: function setScratch (eleOrCy, name, val) {
  
          var scratchPad = getScratch(eleOrCy);
          scratchPad[name] = val;
          eleOrCy.scratch("_autopanOnDrag", scratchPad);
      }
docs: Set the a field (described by 'name' parameter) of scratchPad (that is reserved for this extension on an element or the core) to the given value (by 'val' parameter)