Change 20061201-hqm-2 by [EMAIL PROTECTED] on 2006-12-01 16:30:40 EST in /cygdrive/c/users/hqm/openlaszlo/branches/legals
Summary: reclaim $events to declare events, move handlers to $delegates New Features: Bugs Fixed: Technical Reviewer: max (pending) QA Reviewer: (pending) Doc Reviewer: (pending) Documentation: Release Notes: Details: compiler now emits a simple array of event names $events, one for each <event> tag, and the runtime just uses this to bind those names to LZDeclaredEvent (the sentinel event object) All event handler methods, declared in either <handler> tags or as attributes (e.g., <myfoo onclick="dosomethimg(); dosomethingelse()">), are passed in the $delegates/attrs list as methods. (For each handler, the method is named with a gensym and put in attrs, and the event name/gensym-method-name are put in $delegates) I removed setClassEvents () in UserClass, not needed anymore, since all event handlers are listed in the $delegates list now, and that is copied from the class at node initialize time. Tests: demo apps, still working regression test cases to follow Files: M WEB-INF/lps/lfc/core/LzNode.lzs M WEB-INF/lps/lfc/core/UserClass.lzs M WEB-INF/lps/server/src/org/openlaszlo/compiler/ClassCompiler.java M WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema_Test.java M WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java M WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20061201-hqm-2.tar -- Henry Minsky Software Architect [EMAIL PROTECTED]
