Simplify the initialization of Performance.

This commit is contained in:
Ms2ger 2014-07-14 12:18:31 +02:00
parent 91de702edb
commit 31bd6f3fc6

View file

@ -19,10 +19,9 @@ pub struct Performance {
impl Performance {
fn new_inherited(window: &JSRef<Window>) -> Performance {
let timing = JS::from_rooted(&PerformanceTiming::new(window).root().root_ref());
Performance {
reflector_: Reflector::new(),
timing: timing,
timing: JS::from_rooted(&PerformanceTiming::new(window)),
}
}