[ 
https://issues.apache.org/jira/browse/CB-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Darryl Pogue closed CB-1245.
----------------------------
    Resolution: Won't Fix

WebOS support has been deprecated, so I'm closing this issue as Won't Fix.

> CompassError object is not passed to compassError callback function
> -------------------------------------------------------------------
>
>                 Key: CB-1245
>                 URL: https://issues.apache.org/jira/browse/CB-1245
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-webos (DEPRECATED)
>    Affects Versions: 2.0.0
>         Environment: Palm Pre+, windows, cygwin
>            Reporter: Tekken Tux
>            Assignee: Herm Wong
>            Priority: Major
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I'm quite sure the Pre+ actually has no compass, but instead of calling the 
> compassError callback function with an CompassError of type 
> CompassError.COMPASS_NOT_SUPPORTED, it just calls the callback function 
> without any parameter.
> The following example outputs "undefined":
> {code:title=compass.js|borderStyle=solid}
> var watchID = navigator.compass.watchHeading(compassSuccess, compassError, 
> options);
> ...
> function compassError(e) {
>     console.log(e);
> }
> {code}
> I think this is because in compass.js in function getCurrentHeading it just 
> says:
> {quote}
>             errorCallback();
> {quote}
> with no params



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to