examples/phonegap1/platforms/ios/www/plugins/cordova-plugin-vibration/www/vibration.js
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]);
    }
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]);
    }
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 ] ) ; }
Vibrates the device with a given pattern.

@param {Array of Integer} pattern    Pattern with which to vibrate the device.
Pass in an array of integers that
are the durations for which to
turn on or off the vibrator in
milliseconds. The first value
indicates the number of milliseconds
to wait before turning the vibrator
on. The next value indicates the
number of milliseconds for which
to keep the vibrator on before
turning it off. Subsequent values
alternate between durations in
milliseconds to turn the vibrator
off or to turn the vibrator on.

@param {Integer} repeat              Optional index into the pattern array at which
to start repeating (will repeat until canceled),
or -1 for no repetition (default).
Vibrates the device with a given pattern .