[ https://issues.apache.org/jira/browse/CB-7313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lorin Beer updated CB-7313: --------------------------- Description: device motion documentation reads {code} The returned watch ID references the accelerometer's watch interval, and can be used with navigator.accelerometer.clearWatch to stop watching the accelerometer. var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, accelerometerError, [accelerometerOptions]); {code} last line indicates an array is the expected argument, which causes the api to return an error it should read {code} accelerometerOptions); {code} the rest of watchAccel correctly documents accelerometerOptions as an object. was: device motion documentation reads {code} The returned watch ID references the accelerometer's watch interval, and can be used with navigator.accelerometer.clearWatch to stop watching the accelerometer. var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, accelerometerError, [accelerometerOptions]); {code} last line indicates an array is the expected argument, which causes the api to return an error it should read {code} accelerometerOptions {code} the rest of watchAccel correctly documents accelerometerOptions as an object. > Misleading documentation in Device Motion Plugin > ------------------------------------------------ > > Key: CB-7313 > URL: https://issues.apache.org/jira/browse/CB-7313 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Device Motion > Reporter: Lorin Beer > Assignee: Lorin Beer > Priority: Minor > > device motion documentation reads > {code} > The returned watch ID references the accelerometer's watch interval, and can > be used with navigator.accelerometer.clearWatch to stop watching the > accelerometer. > var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, > accelerometerError, > > [accelerometerOptions]); > {code} > last line indicates an array is the expected argument, which causes the api > to return an error > it should read > {code} > accelerometerOptions); > {code} > the rest of watchAccel correctly documents accelerometerOptions as an object. -- This message was sent by Atlassian JIRA (v6.2#6252)