docs: function (pattern, repeat) {
          repeat = (typeof repeat !== 'undefined') ? repeat : -1;
          pattern = pattern.unshift(0); // add a 0 at beginning for backwards compatibility from w3c spec
          exec(null, null, 'Vibration', 'vibrateWithPattern', [pattern, repeat]);
      }