[Pkg-mozext-commits] [sage-extension] 22/49: handle XUL_NS -> gXUL_NS name change in Deer Park

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.

commit 3d0a2acca291591e3822ad9284451fe7a7a805f3
Author: Peter Andrews <petea at jhu.edu>
Date:   Fri Jun 24 04:56:58 2005 +0000

    handle XUL_NS -> gXUL_NS name change in Deer Park
---
 src/sage/content/commonfunc.js        | 2 ++
 src/sage/content/settings/settings.js | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/sage/content/commonfunc.js b/src/sage/content/commonfunc.js
index dff0b54..e0cb8f2 100755
--- a/src/sage/content/commonfunc.js
+++ b/src/sage/content/commonfunc.js
@@ -96,6 +96,8 @@ var CommonFunc = {
 
 	RDF_NS:				"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
 	RDF_TYPE:			"http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
+	
+	XUL_NS:				"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
 
 	STATUS_UPDATE: "updated",
 	STATUS_NO_UPDATE: "no-updated",
diff --git a/src/sage/content/settings/settings.js b/src/sage/content/settings/settings.js
index bd94665..f19c65a 100755
--- a/src/sage/content/settings/settings.js
+++ b/src/sage/content/settings/settings.js
@@ -99,7 +99,7 @@ function fillSelectFolderMenupopup () {
 	}
 
 	// to be removed once I checkin the top folder
-	var element = document.createElementNS(XUL_NS, "menuitem");
+	var element = document.createElementNS(CommonFunc.XUL_NS, "menuitem");
 	element.setAttribute("label", "Bookmarks");
 	element.setAttribute("id", "NC:BookmarksRoot");
 	popup.appendChild(element);
@@ -119,7 +119,7 @@ function fillFolder(aPopup, aFolder, aDepth) {
 		var curr = children.getNext();
 		if (RDFCU.IsContainer(BMDS, curr)) {
 			curr = curr.QueryInterface(Components.interfaces.nsIRDFResource);
-			var element = document.createElementNS(XUL_NS, "menuitem");
+			var element = document.createElementNS(CommonFunc.XUL_NS, "menuitem");
 			var name = BMDS.GetTarget(curr, gNameArc, true).QueryInterface(kRDFLITIID).Value;
 			var indentation = new Array(aDepth + 1).join("   ");
 			element.setAttribute("label", indentation + name);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git



More information about the Pkg-mozext-commits mailing list