JSIfThenElse

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JSIfThenElse

jtuchel
I think JSIfThenElse should be changed:


javascriptContentOn: aStream
        aStream nextPutAll: 'if('.
        super javascriptContentOn: aStream.
        aStream nextPutAll: ') {'.
        aStream javascript: self trueStatement.
        aStream nextPutAll: '} else {'.
        aStream javascript: self falseStatement.
        aStream nextPut: $}.

because the way it is right now, it cannot handle more than one javascript statement for then and else.

I am not sure where I could send this to, so I thought I post it here for you to consider integrating.

Joachim