I'm looking at code written earlier this year that uses the @method attribute on a <method> tag and wonder how the code ever could have worked.

The code looked something like this -
   <view>
       <method event="oninit" method="doSomething" />
       <method name="doSomething">
          // do something here
       </method>
   </view>

It doesn't work in wafflecone because it is invalid syntax for a <method> tag.
The fix was easy - replacing the oninit event method with
   <handler name="oninit" method="doSomething" />

So, out of curiousity - when was this syntax valid? Is there a way to go back through old documentation other than downloading and installing older builds at [0]?

Thx,
-e

[0]  http://www.openlaszlo.org/archive

Reply via email to