Comparing version 1.0.3 to 1.0.4
@@ -122,3 +122,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
*/ | ||
var isWebkit = !!window.webkitURL; | ||
// var isWebkit = !!window.webkitURL; | ||
@@ -279,38 +279,38 @@ /** | ||
innerWidth: { | ||
type: isWebkit ? Value : Measure, | ||
/** | ||
* Throws when the window is nested (in <iframe>) | ||
* and StrictDom is not in the 'measure' phase. | ||
* | ||
* @param {StrictDom} strictdom | ||
*/ | ||
test: function(strictdom) { | ||
var inIframe = window !== window.top; | ||
if (inIframe && strictdom.not('measure')) { | ||
throw error(2, '`.innerWidth` (in iframe)'); | ||
} | ||
} | ||
}, | ||
innerHeight: { | ||
type: isWebkit ? Value : Measure, | ||
/** | ||
* Throws when the window is nested (in <iframe>) | ||
* and StrictDom is not in the 'measure' phase. | ||
* | ||
* @param {StrictDom} strictdom | ||
*/ | ||
test: function(strictdom) { | ||
var inIframe = window !== window.top; | ||
if (inIframe && strictdom.not('measure')) { | ||
throw error(2, '`.innerHeight` (in iframe)'); | ||
} | ||
} | ||
}, | ||
scrollX: isWebkit ? Value : Measure, | ||
scrollY: isWebkit ? Value : Measure, | ||
// innerWidth: { | ||
// type: isWebkit ? Value : Measure, | ||
// | ||
// /** | ||
// * Throws when the window is nested (in <iframe>) | ||
// * and StrictDom is not in the 'measure' phase. | ||
// * | ||
// * @param {StrictDom} strictdom | ||
// */ | ||
// test: function(strictdom) { | ||
// var inIframe = window !== window.top; | ||
// if (inIframe && strictdom.not('measure')) { | ||
// throw error(2, '`.innerWidth` (in iframe)'); | ||
// } | ||
// } | ||
// }, | ||
// | ||
// innerHeight: { | ||
// type: isWebkit ? Value : Measure, | ||
// | ||
// /** | ||
// * Throws when the window is nested (in <iframe>) | ||
// * and StrictDom is not in the 'measure' phase. | ||
// * | ||
// * @param {StrictDom} strictdom | ||
// */ | ||
// test: function(strictdom) { | ||
// var inIframe = window !== window.top; | ||
// if (inIframe && strictdom.not('measure')) { | ||
// throw error(2, '`.innerHeight` (in iframe)'); | ||
// } | ||
// } | ||
// }, | ||
// | ||
// scrollX: isWebkit ? Value : Measure, | ||
// scrollY: isWebkit ? Value : Measure, | ||
scrollBy: Mutate, | ||
@@ -317,0 +317,0 @@ scrollTo: Mutate, |
@@ -242,2 +242,2 @@ !(function(win) { | ||
})(this); | ||
})( window || this); |
@@ -1,1 +0,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)}(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(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); |
{ | ||
"name": "fastdom", | ||
"description": "Eliminates layout thrashing by batching DOM read/write operations", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "fastdom.js", | ||
@@ -44,4 +44,4 @@ "scripts": { | ||
"dependencies": { | ||
"strictdom": "^1.0.0" | ||
"strictdom": "^1.0.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45013
1284
Updatedstrictdom@^1.0.1