You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2011/07/29 19:42:58 UTC

svn commit: r1152323 - /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-alerts.js

Author: hlship
Date: Fri Jul 29 17:42:57 2011
New Revision: 1152323

URL: http://svn.apache.org/viewvc?rev=1152323&view=rev
Log:
Avoid the use of 'transient' as a property name, as it is a JavaScript reserved word

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-alerts.js

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-alerts.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-alerts.js?rev=1152323&r1=1152322&r2=1152323&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-alerts.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/t5-alerts.js Fri Jul 29 17:42:57 2011
@@ -75,7 +75,9 @@ T5.extendInitializers(function() {
                     }
                 }
 
-                if (alertSpec.transient) {
+                // transient is a reserved word in JavaScript, which cause YUICompressor
+                // to fail.
+                if (alertSpec['transient']) {
                     setTimeout(removeAlert, T5.alerts.TRANSIENT_DELAY);
                 }