[Laszlo-dev] proposal to change setters API, to pass only a single argument

Henry Minsky henry.minsky at gmail.com
Mon Feb 4 14:52:05 PST 2008


This is a proposal to change the API for setter functions, such that
they take just one argument, the value to be set.

For background on this issue see
http://www.openlaszlo.org/jira/browse/LPP-274  applyArgs passes an
undocumented 2nd argument to all setters


The current API is that LzNode.__LZapplyArgs calls setters with a
second argument, the name of the property being set.

The proposed change is that we omit the second arg, and applyArgs will
only pass a single arg, the value being set.

There don't seem to be many cases of apps which actually depend on the
presence of the second arg, but I have seen
cases where people have used a third arg, to allow passing extra info
to their setters. Code which does this will have to be modified.












-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com


More information about the Laszlo-dev mailing list