Return null instead of undefined from findChild and findInvisibleChild.
commit9a5016f01c1e5830fde4a05922c36d3289015f33
authorMichał Sawicz <michal.sawicz@canonical.com>
dateThu 5 Dec 2013, 17:16 (13 years ago)
parent0b5080e
tests/utils/modules/Unity/Test/UnityTestCase.qml+2−2
@@ -83,7 +83,7 @@ TestCase {
8383 }
8484 childs.splice(0, 1);
8585 }
86− return undefined;
86+ return null;
8787 }
8888
8989 // Find an object with the given name in the children tree of "obj"
@@ -103,7 +103,7 @@ TestCase {
103103 }
104104 childs.splice(0, 1);
105105 }
106− return undefined;
106+ return null;
107107 }
108108
109109 // Type a full string instead of keyClick letter by letter