Skip to main content
8 events
when toggle format what by license comment
Aug 10, 2016 at 18:12 vote accept Ohmicron
Aug 10, 2016 at 18:03 answer added Praveen timeline score: 4
Aug 10, 2016 at 17:56 comment added Ohmicron Thanks Caspar. I think that was it. Now I'm getting one of those totally generic errors. Error during init [TypeError: Cannot read property 'apply' of undefined] usually caused by a stupid typing syntax error but at least it is now letting me save the code with the handler tag.
Aug 10, 2016 at 17:52 comment added Caspar Harmer Try changing type="c:addItemEvent" to event="c:addItemEvent" - and remove the invalid 'name' attribute.
Aug 10, 2016 at 17:52 comment added Praveen Can you change type to event: <aura:handler name="addItem" event="c:addItemEvent" action="{!c.handleAddItem}" /> Does that work?
Aug 10, 2016 at 17:50 comment added Ohmicron this is the definition of the addItemEvent <aura:event type="COMPONENT" > <aura:attribute name="item" type="Camping_Item__c" /> </aura:event> what is the problem with the <aura:handler syntax that you see?
Aug 10, 2016 at 17:41 comment added Praveen There is a problem with the <aura:handler/> syntax, before that can you confirm whether c:addItemEvent is an Application or Component event?
Aug 10, 2016 at 16:18 history asked Ohmicron CC BY-SA 3.0