From 70fef0f981321b400fd6c23f0e36454f18893ca4 Mon Sep 17 00:00:00 2001 From: "timeless%mac.com" Date: Mon, 18 Feb 2002 22:47:25 +0000 Subject: [PATCH] Bug 125735 Sidebar.getInterfaces should return the list of interfaces it supports r=sgehani sr=jag git-svn-id: svn://10.0.0.236/trunk@114815 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/components/sidebar/src/nsSidebar.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/xpfe/components/sidebar/src/nsSidebar.js b/mozilla/xpfe/components/sidebar/src/nsSidebar.js index c26785ac98a..672f00ebb5c 100644 --- a/mozilla/xpfe/components/sidebar/src/nsSidebar.js +++ b/mozilla/xpfe/components/sidebar/src/nsSidebar.js @@ -332,10 +332,14 @@ nsSidebar.prototype.flags = nsIClassInfo.DOM_OBJECT; nsSidebar.prototype.classDescription = "Sidebar"; // method of nsIClassInfo -nsSidebar.prototype.getInterfaces = function(c) {c.value = 0; return null;} +nsSidebar.prototype.getInterfaces = function(count) { + var interfaceList = [nsISidebar, nsIClassInfo]; + count.value = interfaceList.length; + return interfaceList; +} // method of nsIClassInfo -nsSidebar.prototype.getHelperForLanguage = function() {return null;} +nsSidebar.prototype.getHelperForLanguage = function(count) {return null;} nsSidebar.prototype.QueryInterface = function (iid) {