Language.js:868 [1] is
if (elementType.indexOf('Vector.<') == 0) {
________________________________
From: Yishay Weiss <[email protected]>
Sent: Tuesday, June 11, 2019 2:07:36 PM
To: [email protected]
Subject: Problem with Vectors
Hi Greg,
I just updated Royale and I’m seeing that in our class FontLoader
private var _fonts:Vector.<Font> = new Vector.<Font>();
gets transpiled to
this.com_printui_text_engine_FontLoader__fonts =
org.apache.royale.utils.Language.Vector();
Notice how the type isn’t given in Vector’s constructor. This results in a
runtime error [1]. Any ideas?
[1]
TypeError: Cannot read property 'indexOf' of null
Watch
Call Stack
org.apache.royale.utils.Language.VectorSupport.vectorElementCoercion
Language.js:868
org.apache.royale.utils.Language.synthVector
Language.js:642
org.apache.royale.utils.Language.Vector
Language.js:685
com.printui.text.engine.FontLoader
FontLoader.js:24