diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -143,7 +143,7 @@ * Clears a scheduled 'read', * 'write' or 'defer' job. * - * @param {Number} id + * @param {Number|String} id * @public */ FastDom.prototype.clear = function(id) { @@ -153,6 +153,9 @@ return this.clearFrame(id); } + // Allow ids to be passed as strings + id = Number(id); + var job = this.batch.hash[id]; if (!job) return; |