r1675 - in branches/bxe_2_0: . js mozile
[email protected] Mon, 14 May 2007 15:35:45 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Mon May 14 15:35:45 2007
New Revision: 1675
Log:
replace dump with bxe_dump
Modified:
branches/bxe_2_0/bxeLoader.js
branches/bxe_2_0/js/bxeFunctions.js
branches/bxe_2_0/js/bxeXMLDocument.js
branches/bxe_2_0/js/eDOMEvents.js
branches/bxe_2_0/js/table.js
branches/bxe_2_0/js/widget.js
branches/bxe_2_0/mozile/mozilekb.js
Modified: branches/bxe_2_0/bxeLoader.js
==============================================================================
--- branches/bxe_2_0/bxeLoader.js (original)
+++ branches/bxe_2_0/bxeLoader.js Mon May 14 15:35:45 2007
@@ -395,7 +395,7 @@
if (!vali) {
bxe_about_box.addText("Document is *not* valid.");
- dump("Document is *not* valid.\n");
+ bxe_dump("Document is *not* valid.\n");
}
else {
@@ -405,7 +405,7 @@
var endTimer = new Date();
debug ("startTime: " + startTimer);
debug ("endTime : " + endTimer);
- dump ("Total Start Time: " + (endTimer - startTimer)/1000 + " sec\n");
+ bxe_dump("Total Start Time: " + (endTimer - startTimer)/1000 + " sec\n");
//for some strange reason, bxe_Transform only works correctly, if we do that asynchron later
window.setTimeout("bxe_Transform_first()",1);
@@ -458,36 +458,36 @@
fn = bxe_getCaller(debug);
- dump( fn.getName() + ": " + text + "\n");
+ bxe_dump( fn.getName() + ": " + text + "\n");
if (options) {
if (options.evalArguments) {
var fname= fn.getName();
- dump(" Arguments: (");
+ bxe_dump(" Arguments: (");
for (var i = 0; i < fn.arguments.length; i++) {
- dump("[" + typeof fn.arguments[i] + "] ");
+ bxe_dump("[" + typeof fn.arguments[i] + "] ");
switch( typeof( fn.arguments[i] )) {
case "function":
- dump (fn.arguments[i].getName());
+ bxe_dump(fn.arguments[i].getName());
break;
case "string":
- dump('"' + fn.arguments[i] + '"');
+ bxe_dump('"' + fn.arguments[i] + '"');
break;
default:
- dump(fn.arguments[i]);
+ bxe_dump(fn.arguments[i]);
}
if (i < fn.arguments.length - 1 ) {
- dump(", ");
+ bxe_dump(", ");
}
}
- dump (")\n");
+ bxe_dump(")\n");
}
if (options.callstack) {
var callstack = new Array();
- dump (" Callstack: \n");
- dump (" ----------\n");
+ bxe_dump(" Callstack: \n");
+ bxe_dump(" ----------\n");
while (fn) {
callstack.unshift(fn.getName() + "\n");
@@ -499,9 +499,9 @@
fn = newfn;
}
for (var i = 0; i < callstack.length; i++) {
- dump(" " +i +": " +callstack[i]);
+ bxe_dump(" " +i +": " +callstack[i]);
}
- dump (" ----------\n");
+ bxe_dump(" ----------\n");
}
@@ -550,4 +550,7 @@
return undefined;
}
-
+function bxe_dump(text) {
+ dump(text);
+}
+
Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js (original)
+++ branches/bxe_2_0/js/bxeFunctions.js Mon May 14 15:35:45 2007
@@ -959,7 +959,7 @@
if( !newNode.makeDefaultNodes(e.additionalInfo.noPlaceholderText)) {
if (!e.additionalInfo.noTransform) {
- dump("HHHHH\n");
+ bxe_dump("HHHHH\n");
bxe_Transform(_id,"select",newNode.parentNode);
}
}
@@ -1056,7 +1056,7 @@
var nodes = new Array();
node = result.iterateNext()
while (node) {
- //dump(result2.snapshotItem(result2.snapshotLength -1).saveXML() + "\n");
+ //bxe_dump(result2.snapshotItem(result2.snapshotLength -1).saveXML() + "\n");
nodes.push(node);
node = result.iterateNext()
@@ -1072,7 +1072,7 @@
node = result.iterateNext();
var _ids = new Array();
while (node) {
- //dump(result2.snapshotItem(result2.snapshotLength -1).saveXML() + "\n");
+ //bxe_dump(result2.snapshotItem(result2.snapshotLength -1).saveXML() + "\n");
var id = node.getAttribute('__bxe_id');
if (node.hasAttribute("__bxe_attribute")) {
id += "/"+node.getAttribute('__bxe_attribute');
@@ -1602,7 +1602,7 @@
z++;
if (z > 10) {
bxe_Transform();
- dump("recursive protection\n");
+ bxe_dump("recursive protection\n");
return;
}
var sel = window.getSelection();
@@ -2180,7 +2180,7 @@
function bxe_Transform(xpath, position, validateNode) {
startTimer = new Date();
- dump("TRANSFsORM\n");
+ bxe_dump("TRANSFsORM\n");
var xml = bxe_config.xmldoc;
@@ -2201,46 +2201,46 @@
bxe_config.xmldoc.documentElement.init();
- dump ("getDomDocument " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("getDomDocument " + (new Date() - startTimer)/1000 + " sec\n");
try {
var xmldoc = bxe_config.processor.transformToFragment(xml,document);
} catch (e) {
BX_debug(e);
}
- dump ("transformToFragment " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("transformToFragment " + (new Date() - startTimer)/1000 + " sec\n");
var bxe_area = document.getElementById("bxe_area");
bxe_area.removeAllChildren();
bxe_area.style.display="none";
bxe_area.appendChild(xmldoc);
- dump ("remove and Append " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("remove and Append " + (new Date() - startTimer)/1000 + " sec\n");
bxe_init_serverIncludes(bxe_area);
- dump ("serverIncludes " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("serverIncludes " + (new Date() - startTimer)/1000 + " sec\n");
bxe_area.style.display="block";
- dump ("display=block " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("display=block " + (new Date() - startTimer)/1000 + " sec\n");
bxe_init_htmldocument();
//status bar neu positionieren
bxe_status_bar.positionize();
- dump ("bxe_init_htmldocument " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("bxe_init_htmldocument " + (new Date() - startTimer)/1000 + " sec\n");
var valid = false;
if (validateNode) {
if (valid = validateNode.isNodeValid(true)) {
- dump ("node is valid \n");
+ bxe_dump("node is valid \n");
} else {
- dump("node is not valid \n");
+ bxe_dump("node is not valid \n");
}
} else {
valid = xml.XMLNode.validateDocument();
}
- dump ("validateDocument " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("validateDocument " + (new Date() - startTimer)/1000 + " sec\n");
if (!valid) {
- dump("Document not valid. Do it again...\n");
+ bxe_dump("Document not valid. Do it again...\n");
return bxe_history_undo();
@@ -2250,7 +2250,7 @@
//bxe_config.xmldoc.insertIntoHTMLDocument();
- //dump ("insertIntoHTMLDocument " + (new Date() - startTimer)/1000 + " sec\n");
+ //bxe_dump("insertIntoHTMLDocument " + (new Date() - startTimer)/1000 + " sec\n");
if (_topId) {
var _topNode = bxe_getHTMLNodeByBxeId(_topId,_topAttr);
@@ -2269,9 +2269,9 @@
sel.collapse(_node.firstChild,position);
}
} catch(e) {
- dump("Cursor selection didn't work (somehow expected behaviour). Exception dump: \n");
- dump(e);
- dump("\n");
+ bxe_dump("Cursor selection didn't work (somehow expected behaviour). Exception dump: \n");
+ bxe_dump(e);
+ bxe_dump("\n");
}
}
@@ -2301,10 +2301,10 @@
sel.extend(node.firstChild,node.firstChild.length);
}
- dump ("cursor selection " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("cursor selection " + (new Date() - startTimer)/1000 + " sec\n");
bxe_history_snapshot();
- dump ("history snapshot " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("history snapshot " + (new Date() - startTimer)/1000 + " sec\n");
}
@@ -2525,11 +2525,11 @@
xmlnode.nextSibling.setBxeId();
}
if (node) {
- dump(xmlnode.localName + "\n");
+ bxe_dump(xmlnode.localName + "\n");
while (xmlnode && xmlnode != node) {
_position = bxe_getChildPosition(xmlnode);
- dump(_position + "\n");
- dump(xmlnode.localName + "\n");
+ bxe_dump(_position + "\n");
+ bxe_dump(xmlnode.localName + "\n");
xmlnode = xmlnode.parentNode
xmlnode.split(_position + 1);
if (xmlnode.nextSibling) {
Modified: branches/bxe_2_0/js/bxeXMLDocument.js
==============================================================================
--- branches/bxe_2_0/js/bxeXMLDocument.js (original)
+++ branches/bxe_2_0/js/bxeXMLDocument.js Mon May 14 15:35:45 2007
@@ -82,7 +82,7 @@
xmlnode = xmlresult.iterateNext();
}
for (var j = 0; j < xmlresults.length; j++) {
- //dump ("result node type " + xmlresults[j].nodeType + xmlresults[j].nodeName+ "\n");
+ //bxe_dump("result node type " + xmlresults[j].nodeType + xmlresults[j].nodeName+ "\n");
if (!xmlresults[j].hasChildNodes()) {
xmlresults[j].XMLNode.setContent("",true);//appendChild(xmlresults[j].ownerDocument.createTextNode("lalaland"));
}
@@ -178,7 +178,7 @@
processor.importStylesheet(newDocument);
} catch(e) {
- dump(newDocument.saveXML(newDocument));
+ bxe_dump(newDocument.saveXML(newDocument));
alert(bxe_i18n.getText("Something went wrong during importing the XSLT document.")+"\n" + bxe_catch_alert_message(e) + "\n" + newDocument.saveXML(newDocument));
}
bxe_config.processor = processor;
@@ -237,7 +237,7 @@
var xhtmldoc = document.implementation.createDocument("", "", null);
xhtmldoc.addEventListener("load", onload_xhtml, false);
xhtmldoc.xmldoc = this;
- dump("start loading " + xhtmlfile + "\n");
+ bxe_dump("start loading " + xhtmlfile + "\n");
try {
xhtmldoc.load(xhtmlfile);
} catch(e) {
Modified: branches/bxe_2_0/js/eDOMEvents.js
==============================================================================
--- branches/bxe_2_0/js/eDOMEvents.js (original)
+++ branches/bxe_2_0/js/eDOMEvents.js Mon May 14 15:35:45 2007
@@ -61,7 +61,7 @@
try {
this.parentNode.doEvents(event);
} catch(e) {
- //dump("no checkEvents on parentNode " + this.parentNode);
+ //bxe_dump("no checkEvents on parentNode " + this.parentNode);
}
}
}
@@ -71,7 +71,7 @@
eDOMEvent.prototype.initEvent = function (eventType) {
this.eventType = eventType.toLowerCase();
- dump ("Event: " + eventType + " " + this.target + " " + this.additionalInfo +"\n");
+ bxe_dump("Event: " + eventType + " " + this.target + " " + this.additionalInfo +"\n");
this.target.doEvents(this);
}
Modified: branches/bxe_2_0/js/table.js
==============================================================================
--- branches/bxe_2_0/js/table.js (original)
+++ branches/bxe_2_0/js/table.js Mon May 14 15:35:45 2007
@@ -1077,8 +1077,8 @@
var dim = new Array();
dim['rows'] = rows;
dim['cols'] = cols;
-/* dump("c: " + cols + "\n");
- dump("r: " + rows + "\n");
+/* bxe_dump("c: " + cols + "\n");
+ bxe_dump("r: " + rows + "\n");
*/
return dim;
}
Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js (original)
+++ branches/bxe_2_0/js/widget.js Mon May 14 15:35:45 2007
@@ -602,7 +602,7 @@
if ( this.TextNode.data.length > 120) {
this.TextNode.data = "..." + this.TextNode.data.substr(this.TextNode.data.length - 120);
}
- dump(text + "\n");
+ bxe_dump(text + "\n");
}
window.status = this.TextNode.data;
}
@@ -692,8 +692,8 @@
this.node.removeAllChildren();
this.Popup.position(0,0,"absolute");
this.Popup.StatusBar = this;
- /*dump (node._node.getAttribute("__bxe_id") + "\n");
- dump (node + "\n");
+ /*bxe_dump(node._node.getAttribute("__bxe_id") + "\n");
+ bxe_dump(node + "\n");
*/
while(node && node._node && node._node.nodeType == 1) {
@@ -1362,7 +1362,7 @@
}
-function Widget_XPathMouseOver (e) { //dump(e.currentTarget.XMLNode._htmlnode.getAttribute("__bxe_id") + "\n");;
+function Widget_XPathMouseOver (e) { //bxe_dump(e.currentTarget.XMLNode._htmlnode.getAttribute("__bxe_id") + "\n");;
var _h = e.currentTarget.XMLNode._htmlnode;
if (_h) {
_h.setAttribute("__bxe_highlight","true");
Modified: branches/bxe_2_0/mozile/mozilekb.js
==============================================================================
--- branches/bxe_2_0/mozile/mozilekb.js (original)
+++ branches/bxe_2_0/mozile/mozilekb.js Mon May 14 15:35:45 2007
@@ -302,7 +302,7 @@
return bxe_deleteEventKey(sel,(event.keyCode == 46));
} catch (e) {
- dump(e + "\n");
+ bxe_dump(e + "\n");
return true;
}
}
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs