From a057734631ccdb2d81ec3e67c3172a87445102c5 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 16 Jun 2014 12:49:54 -0500 Subject: [PATCH] fix(cancelAnimationFrame): polyfill in ionic.DomUtil --- js/utils/dom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/utils/dom.js b/js/utils/dom.js index 63fe9c05ea5..4416ff70aba 100644 --- a/js/utils/dom.js +++ b/js/utils/dom.js @@ -47,10 +47,11 @@ * happens. */ requestAnimationFrame: function(cb) { - window._rAF(cb); + return window._rAF(cb); }, - cancelAnimationFrame: function(cb) { + cancelAnimationFrame: function(requestId) { + cancelAnimationFrame(requestId); }, /**