You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/08/11 17:25:45 UTC
svn commit: r984441 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: lofwyr
Date: Wed Aug 11 15:25:44 2010
New Revision: 984441
URL: http://svn.apache.org/viewvc?rev=984441&view=rev
Log:
debugging helper
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=984441&r1=984440&r2=984441&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Wed Aug 11 15:25:44 2010
@@ -1641,6 +1641,19 @@ var Tobago = {
var evt = document.createEventObject();
element.fireEvent('on' + eventType, evt);
}
+ },
+
+ toString: function(element) {
+ var result = "";
+ for (var property in element) {
+ if (property && element[property]) {
+ var value = "" + element[property];
+ if (value != "") {
+ result += "\r\n" + property + "=" + value;
+ }
+ }
+ }
+ return result;
}
};