You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by an...@apache.org on 2008/02/15 23:42:04 UTC
svn commit: r628193 -
/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/skeleton/core.js
Author: andyhot
Date: Fri Feb 15 14:42:03 2008
New Revision: 628193
URL: http://svn.apache.org/viewvc?rev=628193&view=rev
Log:
Add tapestry.event.buildEventProperties to the skeleton js.
Modified:
tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/skeleton/core.js
Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/skeleton/core.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/skeleton/core.js?rev=628193&r1=628192&r2=628193&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/skeleton/core.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/skeleton/core.js Fri Feb 15 14:42:03 2008
@@ -157,6 +157,22 @@
};
tapestry.event = {
+ /**
+ * Takes an incoming browser generated event (like key/mouse events) and
+ * creates a js object holding the basic values of the event in order for
+ * it to be submitted to the server.
+ *
+ * Parameters:
+ * event - The javascript event method is based on, if it isn't a valid
+ * browser event it will be ignored.
+ * props - The existing property object to set the values on, if it doesn't
+ * exist one will be created.
+ * args - The arguments from an method-call interception
+ *
+ * Returns:
+ * The desired event properties bound to an object. Ie obj.target,obj.charCode, etc..
+ */
+ buildEventProperties:function(event, props, args){tapestry.log('t.e.buildEventProperties', arguments);},
stopEvent: function() {tapestry.log('t.e.stopEvent', arguments);}
};