Changeset 266 for framework/trunk/fuseboxApplication.cfc
- Timestamp:
- 11/06/06 15:14:58 (2 years ago)
- Files:
-
- 1 modified
-
framework/trunk/fuseboxApplication.cfc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
framework/trunk/fuseboxApplication.cfc
r265 r266 93 93 hint="I am the myFusebox data structure." /> 94 94 95 <!--- fixed ticket 99 again--->95 <!--- fixed ticket 139 ---> 96 96 <cfset var myVersion = "5.0.1.#REReplace('$LastChangedRevision$','[^0-9]','','all')#" /> 97 97 … … 635 635 <cfset var alias = "" /> 636 636 <cfset var parent = "" /> 637 <cfset var relative = true /> 637 638 <cfset var nAttrs = 0 /> 638 639 … … 658 659 <cfset nAttrs = 2 /> 659 660 </cfif> 661 <cfif structKeyExists(children[i].xmlAttributes,"relative")> 662 <!--- TODO: check it is boolean ---> 663 <cfset relative = children[i].xmlAttributes.relative /> 664 <cfset nAttrs = nAttrs + 1 /> 665 <cfelse> 666 <cfset parent = "" /> 667 </cfif> 660 668 <cfif this.strictMode and nAttrs neq structCount(children[i].xmlAttributes)> 661 669 <cfthrow type="fusebox.badGrammar.unexpectedAttributes" … … 668 676 <cfif structKeyExists(previousCircuits,alias) and 669 677 children[i].xmlAttributes.path is previousCircuits[alias].getOriginalPath() and 670 parent is previousCircuits[alias].parent> 678 parent is previousCircuits[alias].parent and 679 relative eq previousCircuits[alias].getOriginalPathIsRelative()> 671 680 <!--- old circuit, we can just reload it ---> 672 681 <cfset this.circuits[alias] = previousCircuits[alias].reload(arguments.myFusebox) /> … … 675 684 <cfset this.circuits[alias] = 676 685 createObject("component","fuseboxCircuit") 677 .init(this,alias,children[i].xmlAttributes.path,parent,arguments.myFusebox ) />686 .init(this,alias,children[i].xmlAttributes.path,parent,arguments.myFusebox,relative) /> 678 687 </cfif> 679 688 </cfloop>
