Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Splitting on several lines
Message
From
03/06/2013 04:01:03
 
 
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01575403
Message ID:
01575468
Views:
29
>Given the context of the OP I'd say Michel intended to say 'Statements'
>If he'd *really* wanted more lines (in your definition) he could just have banged in a few CR/LFs ?
>
>IAC, yours was the most elegant and readable solution....

I learned a lot from reading JS framework source code, especially Prototype.js back in 2005.
Was a harsh experience with a VFP background, though achievable.

You can find similar constructs nearly everywhere in JavaScript framework source code; typically for parameters default value:
parm = parm || default;
FWIW, a couple of things I took a long time to understand with JavaScript:
- automatic coercion
- closures
- functions are objects
- global variables are properties of the Global object
- object litterals ({pop1: value1, prop2: value2, method1: function(){}})
- prototype

Much more to say about linking JavaScript and HTML DOM ... (presentation to OFUG scheduled in July)
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform