blob: 458066736e2c872d680084669efc56a617cf9124 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import QtQuick 2.0
QtObject {
property bool calledAsConstructor
property bool calledAsFunction
Component.onCompleted: {
var x1 = new XMLHttpRequest;
var x2 = XMLHttpRequest();
calledAsConstructor = (x1 != null && x1 instanceof XMLHttpRequest);
calledAsFunction = (x2 == undefined);
}
}
|