Hi,

Thanks, this has now been fixed.

Cheers,

Aaron


On 16/04/10 6:26 PM, "ext Jack Wootton" <[email protected]> wrote:

Hello,

Not an issue with Qt itself, but the technology preview documentation on 
Integrating JavaScript 
(http://doc.qt.nokia.com/4.7-snapshot/qdeclarativejavascript.html) contains the 
following code sample:

Item {
     function factorial(a) {
         a = Integer(a);
        if (a <= 0)
             return 1;
         else
             return a * factorial(a - 1);



     }

     MouseArea {
         anchors.fill: parent
         onClicked: print(factorial(10))
     }
 }


However, the JavaScript function to convert to an int is parseInt(), not 
Integer().  Unless this is somekind of global function, should this be 
corrected?

Regards,
Jack

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to