mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-30 23:23:02 +00:00 
			
		
		
		
	Don't worry about ordered attributes
The changes in 0bffae2108 mean that we don't need to explicitly maintain the ordered attributes
			
			
This commit is contained in:
		| @@ -409,9 +409,7 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) { | |||||||
| 				} | 				} | ||||||
| 			] | 			] | ||||||
| 		}; | 		}; | ||||||
| 		newParseTreeNode.orderedAttributes = [newParseTreeNode.attributes["$variable"]]; | 		$tw.utils.each(parseTreeNode.attributes,function(attr) { | ||||||
| 		newParseTreeNode.children[0].orderedAttributes = [newParseTreeNode.children[0].attributes["$name"]]; |  | ||||||
| 		$tw.utils.each(parseTreeNode.orderedAttributes,function(attr) { |  | ||||||
| 			// If the attribute starts with a dollar then add an extra dollar so that it doesn't clash with the $xxx attributes of ubertransclude | 			// If the attribute starts with a dollar then add an extra dollar so that it doesn't clash with the $xxx attributes of ubertransclude | ||||||
| 			var name = attr.name.charAt(0) === "$" ? "$" + attr.name : attr.name, | 			var name = attr.name.charAt(0) === "$" ? "$" + attr.name : attr.name, | ||||||
| 				newAttr = { | 				newAttr = { | ||||||
| @@ -420,7 +418,6 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) { | |||||||
| 					value: attr.value | 					value: attr.value | ||||||
| 				}; | 				}; | ||||||
| 			newParseTreeNode.attributes[name] = newAttr; | 			newParseTreeNode.attributes[name] = newAttr; | ||||||
| 			newParseTreeNode.orderedAttributes.push(newAttr); |  | ||||||
| 		}); | 		}); | ||||||
| 		parseTreeNode = newParseTreeNode; | 		parseTreeNode = newParseTreeNode; | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jeremy@jermolene.com
					jeremy@jermolene.com