From 9b08d1ac8573c0c21abcb122ab82653c42975390 Mon Sep 17 00:00:00 2001 From: "jband%netscape.com" Date: Thu, 20 Apr 2000 12:16:45 +0000 Subject: [PATCH] Had the wrong clazz for the root! So it was better when the caching was broken. Now it works on MI objects with caching fixed. My bad copy/paste error from long ago. --- js/src/xpconnect/src/xpcwrappednative.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/xpconnect/src/xpcwrappednative.cpp b/js/src/xpconnect/src/xpcwrappednative.cpp index 71865c1e213..e3a9811cf0a 100644 --- a/js/src/xpconnect/src/xpcwrappednative.cpp +++ b/js/src/xpconnect/src/xpcwrappednative.cpp @@ -214,8 +214,8 @@ nsXPCWrappedNative::GetNewOrUsedWrapper(XPCContext* xpcc, if(!rootClazz) goto return_wrapper; - root = new nsXPCWrappedNative(xpcc, realObj, aScope, - aGlobalObject, clazz, nsnull); + root = new nsXPCWrappedNative(xpcc, rootObj, aScope, + aGlobalObject, rootClazz, nsnull); NS_RELEASE(rootClazz); if(!root)