cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r603664 - /cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js
Date Wed, 12 Dec 2007 16:27:58 GMT
Author: antonio
Date: Wed Dec 12 08:27:58 2007
New Revision: 603664

URL: http://svn.apache.org/viewvc?rev=603664&view=rev
Log:
Remove unused import.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js?rev=603664&r1=603663&r2=603664&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js
Wed Dec 12 08:27:58 2007
@@ -26,7 +26,6 @@
 
 dojo.provide("cocoon.ajax.BUHandler");
 dojo.require("dojo.dom");
-dojo.require("dojo.html");
 dojo.require("cocoon.ajax.common");
 dojo.require("cocoon.ajax.insertion");
 
@@ -36,10 +35,10 @@
 cocoon.ajax.BUHandler.highlight = null;
 
 dojo.lang.extend(cocoon.ajax.BUHandler, {
-    
+
     processResponse: function(doc) {
-		var base = doc.documentElement;		
-		
+		var base = doc.documentElement;
+
 		var nodes = [];
 		if (base.nodeName.toLowerCase() == "bu:document") {
 			nodes = base.childNodes;
@@ -67,7 +66,7 @@
 			}
 		}
 	},
-	
+
 	handleError: function(message, response) {
 		if (confirm(message + "\nShow server response?")) {
 			var w = window.open(undefined, "Cocoon Error", "location=no,resizable=yes,scrollbars=yes");
@@ -92,14 +91,14 @@
 			if (!id) {
 				alert("no id found on update element");
 				return;
-			}    
+			}
 			// Get the first child element (the first child may be some text!)
 			var firstChild = dojo.dom.getFirstChildElement(element);
-			if (!firstChild && element.nodeName.toLowerCase() == "textarea") 
+			if (!firstChild && element.nodeName.toLowerCase() == "textarea")
 				firstChild = dojo.dom.createDocumentFromText(element.value).documentElement;
 
 			var oldElement = document.getElementById(id);
-			
+
 			if (!oldElement) {
 				alert("no element '" + id + "' in source document");
 				return;
@@ -110,5 +109,5 @@
 				cocoon.ajax.BUHandler.highlight(newElement);
 			}
 		}
-	}	
+	}
 });



Mime
View raw message