You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Darryl Pogue (JIRA)" <ji...@apache.org> on 2018/05/05 06:58:00 UTC
[jira] [Closed] (CB-1245) CompassError object is not passed to
compassError callback function
[ 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org