haxenme/NME — pull request #40 by limikael (2013-01-16 13:21:11+00:00)
Title: Make sure mText in TextField is a string

I changed mText = inText; to mText=Std.string(inText); in the set_text function in TextField. The parameter is declared as String, so it should be a string there, but apparently it is possible that the underlying javascript variable when the code gets executed is actually a number. This made the mText.split("\n"); call in RebuildText crash. I'm not 100% sure of the origin of this number variable in my app, but I think that some JSON parsing have something to do with it.