Is it possible to create custom/arbitrary properties on layers? I'm working on a calendar interface, and would like to be able to read the value of the date from the tapped layer.
do you want to prototype layer? or make a class that extends layer? You should just be able to simply use
layer = new Layerlayer.date = new Date
print layerprint layer.date
Thanks! I was trying to set a custom property in the constructor. Has to be after construction. Cheers!
No problem. I only know the answer from making the error a bunch of times :)