diff options
author | Wilson Page <wilsonpage@me.com> | 2015-02-13 19:49:50 +0000 |
---|---|---|
committer | Wilson Page <wilsonpage@me.com> | 2016-01-04 12:21:44 +0000 |
commit | 4ade1a6b6b14fcef9686ab9eb03e6e4951b948fc (patch) | |
tree | 1cf3226ef4b51cbd069bc01ca15343f081646657 /fastdom.min.js | |
parent | 6c4958941d2c86cdfa6dc17a8b286399f3f71729 (diff) | |
download | fastdom-origin/v1-beta.zip fastdom-origin/v1-beta.tar.gz fastdom-origin/v1-beta.tar.bz2 |
Diffstat (limited to 'fastdom.min.js')
-rw-r--r-- | fastdom.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fastdom.min.js b/fastdom.min.js new file mode 100644 index 0000000..66bd2f1 --- /dev/null +++ b/fastdom.min.js @@ -0,0 +1 @@ +!function(t){"use strict";function e(){var e=this;e.reads=[],e.writes=[],e.raf=o.bind(t)}function n(t){t.scheduled||(t.scheduled=!0,t.raf(i.bind(null,t)))}function i(t){var e,i=t.writes,s=t.reads;try{r(s),r(i)}catch(o){e=o}if(t.scheduled=!1,(s.length||i.length)&&n(t),e){if(!t["catch"])throw e;t["catch"](e)}}function r(t){for(var e;e=t.shift();)e.fn.call(e.ctx)}function s(t,e){var n=t.indexOf(e);return!!~n&&!!t.splice(n,1)}var o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};e.prototype={constructor:e,measure:function(t,e){var i={fn:t,ctx:e};return this.reads.push(i),n(this),i},mutate:function(t,e){var i={fn:t,ctx:e};return this.writes.push(i),n(this),i},clear:function(t){return s(this.reads,t)||s(this.writes,t)},extend:function(t){if("object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return Object.assign(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},"catch":null};var exports=t.fastdom=t.fastdom||new e;"f"==(typeof define)[0]?define(function(){return exports}):"o"==(typeof module)[0]&&(module.exports=exports)}(window); |