summaryrefslogtreecommitdiffstats
path: root/fastdom.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'fastdom.min.js')
-rw-r--r--fastdom.min.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastdom.min.js b/fastdom.min.js
index a1ae649..240211e 100644
--- a/fastdom.min.js
+++ b/fastdom.min.js
@@ -1 +1 @@
-!function(t){"use strict";function e(){var e=this;e.reads=[],e.writes=[],e.raf=a.bind(t)}function n(t){t.scheduled||(t.scheduled=!0,t.raf(i.bind(null,t)))}function i(t){var e,i=t.writes,o=t.reads;try{r(o),r(i)}catch(s){e=s}if(t.scheduled=!1,(o.length||i.length)&&n(t),e){if(!t["catch"])throw e;t["catch"](e)}}function r(t){for(var e;e=t.shift();)e()}function o(t,e){var n=t.indexOf(e);return!!~n&&!!t.splice(n,1)}function s(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}var a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};e.prototype={constructor:e,measure:function(t,e){var i=e?t.bind(e):t;return this.reads.push(i),n(this),i},mutate:function(t,e){var i=e?t.bind(e):t;return this.writes.push(i),n(this),i},clear:function(t){return o(this.reads,t)||o(this.writes,t)},extend:function(t){if("object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return s(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||this);
+!function(t){"use strict";function e(){var e=this;e.reads=[],e.writes=[],e.raf=a.bind(t)}function n(t){t.scheduled||(t.scheduled=!0,t.raf(r.bind(null,t)))}function r(t){var e,r=t.writes,o=t.reads;try{i(o),i(r)}catch(s){e=s}if(t.scheduled=!1,(o.length||r.length)&&n(t),e){if(!t["catch"])throw e;t["catch"](e)}}function i(t){for(var e;e=t.shift();)e()}function o(t,e){var n=t.indexOf(e);return!!~n&&!!t.splice(n,1)}function s(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}var a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};e.prototype={version:1,constructor:e,measure:function(t,e){var r=e?t.bind(e):t;return this.reads.push(r),n(this),r},mutate:function(t,e){var r=e?t.bind(e):t;return this.writes.push(r),n(this),r},clear:function(t){return o(this.reads,t)||o(this.writes,t)},extend:function(t){if("object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return s(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},"catch":null};var exports=function(){var n=t.fastdom||t.__fastdom__;if(n){var r=n.version||(n.defer?0:1),i=r===e.prototype.version;i?n:new e;if(i)return n}return new e}();"f"==(typeof define)[0]?define(function(){return exports}):"o"==(typeof module)[0]?module.exports=exports:t.fastdom=exports,t.__fastdom__=exports}(window||this);