You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Tekken Tux (JIRA)" <ji...@apache.org> on 2012/08/15 14:49:37 UTC
[jira] [Created] (CB-1245) CompassError object is not passed to
compassError callback function
Tekken Tux created CB-1245:
------------------------------
Summary: 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: webOS
Affects Versions: 2.0.0
Environment: Palm Pre+, windows, cygwin
Reporter: Tekken Tux
Assignee: Herm Wong
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:
{quote}
var watchID = navigator.compass.watchHeading(compassSuccess, compassError, options);
{quote}
...
{quote}
function compassError(e) {
console.log(e);
}
{quote}
outputs "undefined". I think this is because in compass.js in function getCurrentHeading it just says:
{quote}
errorCallback();
{quote}
with no params
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1245) CompassError object is not passed to
compassError callback function
Posted by "Markus Leutwyler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435166#comment-13435166 ]
Markus Leutwyler commented on CB-1245:
--------------------------------------
Corrected (checks for Pre3 or TouchPad) in the new cordova-js based version
> 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: webOS
> Affects Versions: 2.0.0
> Environment: Palm Pre+, windows, cygwin
> Reporter: Tekken Tux
> Assignee: Herm Wong
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1245) CompassError object is not passed to
compassError callback function
Posted by "Tekken Tux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tekken Tux updated CB-1245:
---------------------------
Description:
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:
{quote}
var watchID = navigator.compass.watchHeading(compassSuccess, compassError, options);
{quote}
...
{code:title=compass.js|borderStyle=solid}
function compassError(e) {
console.log(e);
}
{code}
outputs "undefined". I think this is because in compass.js in function getCurrentHeading it just says:
{quote}
errorCallback();
{quote}
with no params
was:
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:
{quote}
var watchID = navigator.compass.watchHeading(compassSuccess, compassError, options);
{quote}
...
{quote}
function compassError(e) {
console.log(e);
}
{quote}
outputs "undefined". I think this is because in compass.js in function getCurrentHeading it just says:
{quote}
errorCallback();
{quote}
with no params
> 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: webOS
> Affects Versions: 2.0.0
> Environment: Palm Pre+, windows, cygwin
> Reporter: Tekken Tux
> Assignee: Herm Wong
> 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:
> {quote}
> var watchID = navigator.compass.watchHeading(compassSuccess, compassError, options);
> {quote}
> ...
> {code:title=compass.js|borderStyle=solid}
> function compassError(e) {
> console.log(e);
> }
> {code}
> outputs "undefined". I think this is because in compass.js in function getCurrentHeading it just says:
> {quote}
> errorCallback();
> {quote}
> with no params
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1245) CompassError object is not passed to
compassError callback function
Posted by "Tekken Tux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tekken Tux updated CB-1245:
---------------------------
Description:
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
was:
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:
{code:title=compass.js|borderStyle=solid}
var watchID = navigator.compass.watchHeading(compassSuccess, compassError, options);
...
function compassError(e) {
console.log(e);
}
{code}
outputs "undefined". I think this is because in compass.js in function getCurrentHeading it just says:
{quote}
errorCallback();
{quote}
with no params
> 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: webOS
> Affects Versions: 2.0.0
> Environment: Palm Pre+, windows, cygwin
> Reporter: Tekken Tux
> Assignee: Herm Wong
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1245) CompassError object is not passed to
compassError callback function
Posted by "Markus Leutwyler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435061#comment-13435061 ]
Markus Leutwyler commented on CB-1245:
--------------------------------------
That's correct, only the Pre3 and TouchPad have a Compass. Thanks for reporting this
> 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: webOS
> Affects Versions: 2.0.0
> Environment: Palm Pre+, windows, cygwin
> Reporter: Tekken Tux
> Assignee: Herm Wong
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1245) CompassError object is not passed to
compassError callback function
Posted by "Tekken Tux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tekken Tux updated CB-1245:
---------------------------
Description:
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
was:
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
> 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: webOS
> Affects Versions: 2.0.0
> Environment: Palm Pre+, windows, cygwin
> Reporter: Tekken Tux
> Assignee: Herm Wong
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1245) CompassError object is not passed to
compassError callback function
Posted by "Tekken Tux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tekken Tux updated CB-1245:
---------------------------
Description:
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:
{code:title=compass.js|borderStyle=solid}
var watchID = navigator.compass.watchHeading(compassSuccess, compassError, options);
...
function compassError(e) {
console.log(e);
}
{code}
outputs "undefined". I think this is because in compass.js in function getCurrentHeading it just says:
{quote}
errorCallback();
{quote}
with no params
was:
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:
{quote}
var watchID = navigator.compass.watchHeading(compassSuccess, compassError, options);
{quote}
...
{code:title=compass.js|borderStyle=solid}
function compassError(e) {
console.log(e);
}
{code}
outputs "undefined". I think this is because in compass.js in function getCurrentHeading it just says:
{quote}
errorCallback();
{quote}
with no params
> 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: webOS
> Affects Versions: 2.0.0
> Environment: Palm Pre+, windows, cygwin
> Reporter: Tekken Tux
> Assignee: Herm Wong
> 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:
> {code:title=compass.js|borderStyle=solid}
> var watchID = navigator.compass.watchHeading(compassSuccess, compassError, options);
> ...
> function compassError(e) {
> console.log(e);
> }
> {code}
> outputs "undefined". I think this is because in compass.js in function getCurrentHeading it just says:
> {quote}
> errorCallback();
> {quote}
> with no params
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira