Merge BindingObject and Reflectable.

This commit is contained in:
Ms2ger 2013-10-18 17:02:16 +02:00
parent f585d218cb
commit 321e0373fa
23 changed files with 62 additions and 200 deletions

View file

@ -114,6 +114,12 @@ impl Reflectable for AbstractNode<ScriptView> {
fn wrap_object_shared(@mut self, _cx: *JSContext, _scope: *JSObject) -> *JSObject {
fail!(~"need to implement wrapping");
}
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
do self.with_mut_base |base| {
base.GetParentObject(cx)
}
}
}
impl Traceable for Node<ScriptView> {