remove extra clones from dom event script

This commit is contained in:
Jake Goldsborough 2016-11-04 07:57:53 -07:00 committed by Keith Yeung
parent cfef68f92d
commit c5f562aa07

View file

@ -330,8 +330,8 @@ impl Runnable for EventRunnable {
fn handler(self: Box<EventRunnable>) {
let target = self.target.root();
let bubbles = self.bubbles.clone();
let cancelable = self.cancelable.clone();
let bubbles = self.bubbles;
let cancelable = self.cancelable;
target.fire_event_with_params(self.name, bubbles, cancelable);
}
}