Author: titmuss
Date: Sat Jan 19 13:14:38 2008
New Revision: 1514

URL: http://svn.slimdevices.com?rev=1514&root=Jive&view=rev
Log:
Bug: N/A
Description:
Extend the dispatchNewEvent call to take event arguments.


Modified:
    trunk/jive/src/pkg/jive/share/jive/ui/Widget.lua

Modified: trunk/jive/src/pkg/jive/share/jive/ui/Widget.lua
URL: 
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/jive/ui/Widget.lua?rev=1514&root=Jive&r1=1513&r2=1514&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/jive/ui/Widget.lua (original)
+++ trunk/jive/src/pkg/jive/share/jive/ui/Widget.lua Sat Jan 19 13:14:38 2008
@@ -470,16 +470,16 @@
 
 --[[
 
-=head2 jive.ui.Widget:dispatchNewEvent(eventType)
-
-Send a new event of type I<type> with value I<value> to this widgets listeners.
-
-=cut
---]]
-function dispatchNewEvent(self, eventType)
+=head2 jive.ui.Widget:dispatchNewEvent(eventType, ...)
+
+Send a new event of type I<type> with value I<value> to this widgets 
listeners. The additional args are event specific.
+
+=cut
+--]]
+function dispatchNewEvent(self, eventType, ...)
        _assert(type(eventType) == "number", "Invalid event type")
 
-       local event = Event:new(eventType)
+       local event = Event:new(eventType, ...)
        return Framework:dispatchEvent(self, event)
 end
 

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to