aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-04-26 05:30:28 -0500
committerbors-servo <metajack+bors@gmail.com>2015-04-26 05:30:28 -0500
commit1389be37823fccf4108f4e79d0a3a793f0bbe93e (patch)
tree30b2dc45c0aad707848dab7bfc53a3c11e1bdfe8 /components/script/timers.rs
parentaef48baeb4a67d003c8a88d91d01d3a33ac3620d (diff)
parent9185c3de7984fa46b71a62b2902a707c9d4134c3 (diff)
downloadservo-1389be37823fccf4108f4e79d0a3a793f0bbe93e.tar.gz
servo-1389be37823fccf4108f4e79d0a3a793f0bbe93e.zip
Auto merge of #5847 - Ms2ger:slice, r=SimonSapin
<!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5847) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs
index d0cb849b0a8..d54a77c9951 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -238,7 +238,7 @@ impl TimerManager {
let _ = function.Call_(this, data.args, Report);
}
TimerCallback::StringTimerCallback(code_str) => {
- this.evaluate_js_on_global_with_result(code_str.as_slice());
+ this.evaluate_js_on_global_with_result(&code_str);
}
};