Author: hlship
Date: Mon Sep 8 15:42:50 2008
New Revision: 693307
URL: http://svn.apache.org/viewvc?rev=693307&view=rev
Log:
TAPESTRY-2624: Remove unecessary comments from tapestry.js
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=693307&r1=693306&r2=693307&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Mon Sep 8 15:42:50 2008
@@ -138,8 +138,6 @@
{
var functionName = pair.key;
- // Tapestry.logWarning("Initialize: #{name} ...", {
name:functionName });
-
var initf = Tapestry.Initializer[functionName];
if (initf == undefined)
@@ -877,8 +875,6 @@
return;
}
- // Tapestry.debug("Focus change: #{memo} for #{field}", { memo:
event.memo.id, field: this.field.id });
-
var focused = event.memo;
if (focused == this.field)
@@ -894,8 +890,6 @@
showMessage : function(message)
{
- // Tapestry.debug("Show message: #{message} for #{field}", { message:
message, field: this.field.id });
-
this.stopAnimation();
this.innerSpan.update(message);
@@ -918,8 +912,6 @@
fadeIn : function()
{
- // Tapestry.debug("fadeIn: " + this.field.id);
-
if (! this.hasMessage) return;
this.repositionBubble();
@@ -1366,8 +1358,6 @@
scriptElement.onreadystatechange = function ()
{
- // Tapestry.debug("State #{state} for #{script} (loaded is
#{loaded})", { state:this.readyState, script:scriptElement.src, loaded:loaded
});
-
// IE may fire either loaded or complete, or perhaps even
both.
if (! loaded && (this.readyState == 'loaded' ||
this.readyState == 'complete'))
{
@@ -1388,8 +1378,6 @@
{
this.loaded++;
- // Tapestry.debug("Script #{loaded} of #{toload} loaded", this);
-
// Evaluated the dependent script only once all the elements have
loaded.
if (this.loaded == this.toload)
@@ -1428,8 +1416,6 @@
*/
contains : function (collection, prop, assetURL)
{
- // Tapestry.debug("Checking previously loaded for: " + assetURL);
-
return $A(collection).any(function (element)
{
var existing = element[prop];
@@ -1439,8 +1425,6 @@
var complete =
Prototype.Browser.IE ? Tapestry.rebuildURL(existing) :
existing;
- // Tapestry.debug("Previously loaded: " + complete);
-
return complete == assetURL;
});
@@ -1465,8 +1449,6 @@
if (Tapestry.ScriptManager.contains(document.scripts, "src",
assetURL)) return; // continue to next script
- // Tapestry.debug("Loading script: " + assetURL);
-
var element = new Element('script', { src: assetURL, type:
'text/javascript' });
head.insert({bottom:element});