You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2011/03/20 19:19:00 UTC
svn commit: r1083530 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
Author: bommel
Date: Sun Mar 20 18:18:59 2011
New Revision: 1083530
URL: http://svn.apache.org/viewvc?rev=1083530&view=rev
Log:
adding utils to access to logging messages
for each not available before JavaScript 1.6
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.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/logging.js?rev=1083530&r1=1083529&r2=1083530&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js Sun Mar 20 18:18:59 2011
@@ -43,7 +43,8 @@ var LOG = {
getMessages: function(severity) {
var result = "";
- for each (var message in this.messages) {
+ for (var i = 0; i < this.messages.length; i++) {
+ var message = this.messages[i];
if (message.type >= severity) {
result = result.concat(this.getSeverityName(message.type));
result = result.concat(": ");