Skip to content

House Keeping: not all global vars have g_ prepended #23

@ElSkunkito

Description

@ElSkunkito

For clarity I have prepended g_to what were variables inside of the GC class.
THey are effectively globals in Java script.

Not all of them got the preneded g_.

at the top of gc.ui.js you will see them
var lastcoordsystem = 1; // 1=dd.ddddd, 2=ddmmss.ss, 3=ddmm.mmmm
var sign = 1;
var degrees = 0;
...

THey should all have g_added, and in source have it added as well.

This must be a careful operation as ther is a slight possibility some local vars may share
the same name as the globals.

also determine if and why the var have to be declared at the top of gc.ui.js.
other globals are inside of GC_init() and they work fine.
The ones at the top did not work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions