Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing value not a reference
Message
From
21/03/2016 10:04:43
 
 
To
21/03/2016 05:43:36
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01633405
Message ID:
01633418
Views:
53
>I doubt so, as JavaScript only support passing parameters by value.
>What probably happens is that lnLeft, not being defined by var lnLeft, is created as a property of the global object (window when executing in a browser); when onMouseOut() executes, it takes whatever lnLeft is in scope, eg window.lnLeft.

Thanks, using var seems to be the simplest way to use.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform