code: function getScratch (eleOrCy, name) {
  
          if (eleOrCy.scratch("_autopanOnDrag") === undefined) {
              eleOrCy.scratch("_autopanOnDrag", {});
          }
  
          var scratchPad = eleOrCy.scratch("_autopanOnDrag");
  
          return ( name === undefined ) ? scratchPad : scratchPad[name];
      }
docs: Get scratch pad reserved for this extension on the given element or the core if 'name' parameter is not set, if the 'name' parameter is set then return the related property in the scratch instead of the whole scratchpad