| branch | GCC_SURGE |
| changeset 31 | 5daf16870df6 |
| parent 30 | 5dc02b23752f |
| 27:93b982ccede2 | 31:5daf16870df6 |
|---|---|
1 import Qt 4.7 |
|
2 |
|
3 QtObject { |
|
4 property bool calledAsConstructor |
|
5 property bool calledAsFunction |
|
6 |
|
7 Component.onCompleted: { |
|
8 var x1 = new XMLHttpRequest; |
|
9 var x2 = XMLHttpRequest(); |
|
10 |
|
11 calledAsConstructor = (x1 != null && x1 instanceof XMLHttpRequest); |
|
12 calledAsFunction = (x2 == undefined); |
|
13 } |
|
14 } |