summaryrefslogtreecommitdiffstats
path: root/lib/dom-batch.js
diff options
context:
space:
mode:
authorWilson Page <wilsonpage@me.com>2013-08-26 21:51:47 +0100
committerWilson Page <wilsonpage@me.com>2013-08-26 21:51:47 +0100
commit8df7493c9fce1a5957168ce3c0b2c0de6afba3d0 (patch)
treed49574bd90d88663553b2f6f709327e5a8456f89 /lib/dom-batch.js
parent3bc9f234f3781199e681521c2fb223bd81e5a61c (diff)
downloadfastdom-8df7493c9fce1a5957168ce3c0b2c0de6afba3d0.zip
fastdom-8df7493c9fce1a5957168ce3c0b2c0de6afba3d0.tar.gz
fastdom-8df7493c9fce1a5957168ce3c0b2c0de6afba3d0.tar.bz2
Remove dependency on Function.prototype.bind
Diffstat (limited to 'lib/dom-batch.js')
-rw-r--r--lib/dom-batch.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/dom-batch.js b/lib/dom-batch.js
index e4423c3..4671b80 100644
--- a/lib/dom-batch.js
+++ b/lib/dom-batch.js
@@ -31,13 +31,8 @@
function DomBatch() {
this.reads = [];
this.writes = [];
-
this.mode = null;
this.pending = false;
-
- // Bind context
- this.run = this.run.bind(this);
- this.frame = this.frame.bind(this);
}
/**
@@ -73,6 +68,7 @@
* @api private
*/
DomBatch.prototype.request = function(type) {
+ var self = this;
// If we are currently writing, we don't
// need to scedule a new frame as this