You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/12/06 03:25:00 UTC
svn commit: r482874 -
/incubator/xap/trunk/src/xap/bridges/ext/helloWorldBridge.js
Author: mturyn
Date: Tue Dec 5 19:24:59 2006
New Revision: 482874
URL: http://svn.apache.org/viewvc?view=rev&rev=482874
Log:
From: Rob Gagne
some clarified comments
Modified:
incubator/xap/trunk/src/xap/bridges/ext/helloWorldBridge.js
Modified: incubator/xap/trunk/src/xap/bridges/ext/helloWorldBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/ext/helloWorldBridge.js?view=diff&rev=482874&r1=482873&r2=482874
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/ext/helloWorldBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/ext/helloWorldBridge.js Tue Dec 5 19:24:59 2006
@@ -59,18 +59,19 @@
* Identify the supported attributes
*/
xap.bridges.ext.helloWorldBridge.prototype.getNewAllowedAttributes = function() {
+ /* format is: return ["an_attribute", "another_one"] */
return ["sample"];
}
/*
- * Respond to attributes
+ * Respond to attributes; the name should be set(AttributeName)
*/
xap.bridges.ext.helloWorldBridge.prototype.setSampleAttribute = function(value) {
this.contentDiv.innerHTML = value;
}
/*
- * Handle events
+ * Handle events: as defined in the connect call
*/
xap.bridges.ext.helloWorldBridge.prototype.onclick = function() {
alert ("event");