Changeset 193

Show
Ignore:
Timestamp:
06/17/06 20:16:49 (3 years ago)
Author:
scorfield
Message:

Fixes #79 by correcting the test for parent verbs and fixing how instantiate handles the arguments attribute.

Location:
fusebox5/verbs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • fusebox5/verbs/argument.cfm

    r173 r193  
    6969                        } 
    7070                } 
    71                 if (fb_.validParent) { 
     71                if (not fb_.validParent) { 
    7272                        fb_throw("fusebox.badGrammar.argumentInvalidParent", 
    7373                                                "Verb 'argument' has invalid parent verb", 
  • fusebox5/verbs/instantiate.cfm

    r186 r193  
    5555                // arguments - string default "" 
    5656                if (not structKeyExists(fb_.verbInfo.attributes,"arguments")) { 
    57                         fb_.verbInfo.attributes.arguments = ""; 
    5857                        // prepare to gather up <argument> tags, if any: 
    5958                        fb_.verbInfo.data.arguments = ""; 
     
    120119                 
    121120                // update arguments if we had any child <argument> tags: 
    122                 if (structKeyExists(fb_.verbInfo,"data") and fb_.verbInfo.data.arguments is not "") { 
     121                if (not structKeyExists(fb_.verbInfo.attributes,"arguments")) { 
    123122                        fb_.verbInfo.attributes.arguments = fb_.verbInfo.data.arguments; 
    124123                }