jonnyreeves / as3-vanilla

Extract strongly typed Objects from dynamic objects without writing a single line of code!
http://www.jonnyreeves.co.uk/2011/08/getting-started-with-vanilla/
MIT License
81 stars 15 forks source link

Transient fields aren't ignored #2

Closed alebianco closed 11 years ago

alebianco commented 11 years ago

fields tagged as [Transient], wich are ignored during serialization, are set to null by as3-vanilla when rebuilding the object.

I forked the project and did a quick fix 'cause I needed it fast, but It would be nice to see this behaviour aligned to the remote/json serialization also on the official release

jonnyreeves commented 11 years ago

Thanks! To be honest, I don't really maintain as3-vanilla anymore as my focus has moved away from ActionScript. If you would like to submit a pull request, I would be more than happy to merge it through and create a new build.

alebianco commented 11 years ago

too bad :(

i'll write some tests specific for the case and then i'll submit the pull request :+1:

eamonnfaherty commented 11 years ago

I have added the tests and code for this feature.

https://github.com/eamonnfaherty/as3-vanilla/

Feel free to grab it.

Eamonn

jonnyreeves commented 11 years ago

Cheers Eamonn,

If you make a pull request I can merge it back in for you.

Cheers Jonny.

jonnyreeves commented 11 years ago

Merged @eamonnfaherty's changes into mater and upped the version to 0.1.2 - enjoy!