keytops-game-framework 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6280,6 +6280,9 @@ class EnterOptionParser {
|
|
|
6280
6280
|
getOption(key) {
|
|
6281
6281
|
let keyArr = key.split(".");
|
|
6282
6282
|
let parent = this._options;
|
|
6283
|
+
if (!parent) {
|
|
6284
|
+
return null;
|
|
6285
|
+
}
|
|
6283
6286
|
for (let i = 0; i < keyArr.length; i++) {
|
|
6284
6287
|
const key = keyArr[i];
|
|
6285
6288
|
parent = parent[key];
|