Add utility method for getting ordered attributes

This commit is contained in:
jeremy@jermolene.com
2022-04-26 14:02:31 +01:00
parent bdd99edfe8
commit 0bffae2108
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ LetWidget.prototype.computeAttributes = function() {
var changedAttributes = {},
self = this;
this.currentValueFor = Object.create(null);
$tw.utils.each(this.parseTreeNode.orderedAttributes,function(attribute,index) {
$tw.utils.each($tw.utils.getOrderedAttributesFromParseTreeNode(this.parseTreeNode),function(attribute) {
var value = self.computeAttribute(attribute),
name = attribute.name;
if(name.charAt(0) !== "$") {