royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject XML filters broke
Date Mon, 06 Aug 2018 22:09:10 GMT
var folderFolders:XMLList = assetXML.folder.(child('key').indexOf(folder.key) == 0);
var folderImages:XMLList = assetXML.image.(child('key').indexOf(folder.key) == 0);

Is now compiled as:

var /** @type {XMLList} */ folderFolders = this.assetXML.child('folder').filter(function(node){return
(node.child('key').indexOf(node.folder.key) == 0)});
var /** @type {XMLList} */ folderImages = this.assetXML.child('image').filter(function(node){return
(node.child('key').indexOf(node.folder.key) == 0)});

“node.folder.key” is not correct. “folder” is a local variable of an un related object
type.

I assume this broke with the recent XML filter changes.

Harbs
Mime
View raw message