diff options
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 4b4e6cfea93..5dc7f2d6215 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -418,9 +418,7 @@ pub trait Reflectable { /// Returns the receiver's reflector. fn reflector(&self) -> &Reflector; /// Initializes the Reflector - fn init_reflector(&mut self, _obj: *mut JSObject) { - panic!("Cannot call init on this Reflectable"); - } + fn init_reflector(&mut self, obj: *mut JSObject); } /// Create the reflector for a new DOM object and yield ownership to the |