That's true - I was originally talking about quoting the values, but
there's no reason the same logic couldn't be used on the keys. For
instance, it's sometimes necessary to pass in an event handler as an
Ext
config option (for instance, passing a renderer to a grid column
config). In that case, you can't have the handler in quotes.
I will add another method called addFunction. That is the only case in
which you don't need quotes. The key can still be quoted, there is no
point wasting time unquoting it.
For example:
$json := a4d.json.new
$json->addFunction("renderer"; "function(value) { return value +
'!'; }")
No modifications to the core routines are necessary in this case.
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoy.org
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/