Is there a difference between using local function and function? [import]uid: 122076 topic_id: 21868 reply_id: 321868[/import]
Brandon,
A local (variable or function) exists only inside the element where it resides (a page, another function, etc), while a “global” (everything you do not define as a local) resides and it is accessible to every page of your application. The problem with globals is the fact they are always alive, consuming memory of the device. [import]uid: 4883 topic_id: 21868 reply_id: 86935[/import]
In short; use local whenever and wherever you can
[import]uid: 52491 topic_id: 21868 reply_id: 86989[/import]