Drop the pointless indirection in Window::active_timers.

This commit is contained in:
Ms2ger 2014-05-12 17:15:35 +02:00
parent b036bee532
commit ab5bf80447

View file

@ -70,7 +70,7 @@ pub struct Window {
pub location: Option<JS<Location>>, pub location: Option<JS<Location>>,
pub navigator: Option<JS<Navigator>>, pub navigator: Option<JS<Navigator>>,
pub image_cache_task: ImageCacheTask, pub image_cache_task: ImageCacheTask,
pub active_timers: ~HashMap<TimerId, TimerHandle>, pub active_timers: HashMap<TimerId, TimerHandle>,
pub next_timer_handle: i32, pub next_timer_handle: i32,
pub compositor: Untraceable<~ScriptListener>, pub compositor: Untraceable<~ScriptListener>,
pub browser_context: Option<BrowserContext>, pub browser_context: Option<BrowserContext>,
@ -380,7 +380,7 @@ impl Window {
location: None, location: None,
navigator: None, navigator: None,
image_cache_task: image_cache_task, image_cache_task: image_cache_task,
active_timers: ~HashMap::new(), active_timers: HashMap::new(),
next_timer_handle: 0, next_timer_handle: 0,
browser_context: None, browser_context: None,
performance: None, performance: None,