diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-03-08 20:12:16 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-03-09 18:51:38 +0100 |
commit | 84b0f45ed5d1e6fdff24c195699218c8743b561e (patch) | |
tree | 4f49bd39a063c765a3f1a4c147fc8bae785d7bef /src/components/script/dom/testbinding.rs | |
parent | 9fbfb1909cde6225279730f123f312c270155d19 (diff) | |
download | servo-84b0f45ed5d1e6fdff24c195699218c8743b561e.tar.gz servo-84b0f45ed5d1e6fdff24c195699218c8743b561e.zip |
Use FooValue() functions.
Diffstat (limited to 'src/components/script/dom/testbinding.rs')
-rw-r--r-- | src/components/script/dom/testbinding.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/script/dom/testbinding.rs b/src/components/script/dom/testbinding.rs index 630e457fb87..514260c5c10 100644 --- a/src/components/script/dom/testbinding.rs +++ b/src/components/script/dom/testbinding.rs @@ -8,9 +8,8 @@ use dom::blob::Blob; use dom::window::Window; use servo_util::str::DOMString; -use js::JSVAL_NULL; use js::jsapi::JSContext; -use js::jsval::JSVal; +use js::jsval::{JSVal, NullValue}; #[deriving(Encodable)] pub struct TestBinding { @@ -45,7 +44,7 @@ impl TestBinding { pub fn SetStringAttribute(&self, _: DOMString) {} pub fn InterfaceAttribute(&self) -> JS<Blob> { Blob::new(&self.window) } pub fn SetInterfaceAttribute(&self, _: &JS<Blob>) {} - pub fn AnyAttribute(&self, _: *JSContext) -> JSVal { JSVAL_NULL } + pub fn AnyAttribute(&self, _: *JSContext) -> JSVal { NullValue() } pub fn SetAnyAttribute(&self, _: *JSContext, _: JSVal) {} pub fn GetBooleanAttributeNullable(&self) -> Option<bool> { Some(false) } |