[aida] Duplicated Menu

Giuseppe Luigi Punzi glpunzi at lordzealon.com
Wed Aug 13 12:18:05 CEST 2008


I love you.


Janko Mivšek escribió:
> Giuseppe Luigi Punzi wrote:
>
>   
>>>> IncigestApp>>companyMnu
>>>>    | e |
>>>>    e := WebElement new.
>>>>    e
>>>>        addButtonText: '<- Back '
>>>>        action: #back.
>>>>    e addSpace.
>>>>    e
>>>>        addButtonText: 'New Company'
>>>>        action: #addCompany.
>>>>    e addBreak.
>>>>    e addBreak.
>>>>    ^ self add: e
>>>>         
>
> Aha! Look at the last line! You need to return this element, not add it 
> to the app. That's why you have 4 occurrences of that menu on your app 
> view. So: ^e !
>
> Janko
>
>   



More information about the Aida mailing list