summaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/index.js b/index.js
index 337bc80..feafcad 100644
--- a/index.js
+++ b/index.js
@@ -266,9 +266,10 @@
// Clear reference to the job
delete this.queue.hash[job.id];
- // Call the job in
- try { job.fn.call(ctx); } catch(e) {
- this.onError(e);
+ if (this.quiet) {
+ try { job.fn.call(ctx); } catch (e) {}
+ } else {
+ job.fn.call(ctx);
}
};
@@ -332,16 +333,6 @@
return this.frames[index] = fn;
};
- /**
- * Called when a callback errors.
- * Overwrite this if you don't
- * want errors inside your jobs
- * to fail silently.
- *
- * @param {Error}
- */
- FastDom.prototype.onError = function(){};
-
// We only ever want there to be
// one instance of FastDom in an app
fastdom = fastdom || new FastDom();