Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: [ FIXED ] Small Bug in Notification  (Read 9978 times)
miroslav
Newbie
*
Posts: 2


View Profile Email
« on: January 28, 2008, 01:00:31 »

I've noticed very small bug in Notification class (v1.7.1) in toString method.

On lines 115 and 116 it's:
msg += "\nBody:"+( body == null )?"null":body.toString();
msg += "\nType:"+( type == null )?"null":type;


but it should be:
msg += "\nBody:"+(( body == null )?"null":body.toString());
msg += "\nType:"+(( type == null )?"null":type);


so you get string concatenation instead of using "\nBody" and "\nType" strings as conditional statement for conditional operator.
« Last Edit: February 25, 2008, 06:31:29 by puremvc » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: January 29, 2008, 09:52:57 »

Excellent timing with this report!

The release of 2.0 is slightly delayed as all the demos and docs are updated.

So this fix has been incorporated into 2.0 and a corresponding test has been added to the test suite.

Cheers,
-=Cliff>
Logged
Pages: [1]
Print