Fix for bug 296230 (javascript removeNode only affects the view, NOT the DOM). r/sr=jst.

This commit is contained in:
peterv%propagandism.org 2005-09-24 17:38:14 +00:00
Родитель 7ca5a4b4be
Коммит 67242b14b8
1 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

@ -6691,9 +6691,11 @@ nsArraySH::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
rv = WrapNative(cx, obj, array_item, NS_GET_IID(nsISupports), vp,
getter_AddRefs(holder));
NS_ENSURE_SUCCESS(rv, rv);
rv = NS_SUCCESS_I_DID_SOMETHING;
}
else {
*vp = JSVAL_VOID;
}
rv = NS_SUCCESS_I_DID_SOMETHING;
}
return rv;
@ -6731,11 +6733,13 @@ nsNamedArraySH::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
rv = WrapNative(cx, obj, item, NS_GET_IID(nsISupports), vp,
getter_AddRefs(holder));
NS_ENSURE_SUCCESS(rv, rv);
rv = NS_SUCCESS_I_DID_SOMETHING;
}
else {
*vp = JSVAL_VOID;
}
return rv; // Don't fall through to nsArraySH::GetProperty() here
// Don't fall through to nsArraySH::GetProperty() here
return NS_SUCCESS_I_DID_SOMETHING;
}
return nsArraySH::GetProperty(wrapper, cx, obj, id, vp, _retval);