Skip to content

Commit

Permalink
update build to 2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
imsky committed Jan 18, 2016
1 parent 37541a7 commit e3bea62
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
20 changes: 8 additions & 12 deletions holder.js
@@ -1,8 +1,8 @@
/*!
Holder - client side image placeholders
Version 2.9.0+igxoe
© 2015 Ivan Malopinsky - http://imsky.co
Version 2.9.1+ygdp
© 2016 Ivan Malopinsky - http://imsky.co
Site: http://holderjs.com
Issues: https://github.com/imsky/holder/issues
Expand Down Expand Up @@ -210,36 +210,32 @@ License: MIT

//requestAnimationFrame polyfill for older Firefox/Chrome versions
if (!window.requestAnimationFrame) {
if (window.webkitRequestAnimationFrame) {
if (window.webkitRequestAnimationFrame && window.webkitCancelAnimationFrame) {
//https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/requestAnimationFrame/polyfill-webkit.js
(function (global) {
// window.requestAnimationFrame
global.requestAnimationFrame = function (callback) {
return webkitRequestAnimationFrame(function () {
callback(global.performance.now());
});
};

// window.cancelAnimationFrame
global.cancelAnimationFrame = webkitCancelAnimationFrame;
global.cancelAnimationFrame = global.webkitCancelAnimationFrame;
}(window));
} else if (window.mozRequestAnimationFrame) {
} else if (window.mozRequestAnimationFrame && window.mozCancelAnimationFrame) {
//https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/requestAnimationFrame/polyfill-moz.js
(function (global) {
// window.requestAnimationFrame
global.requestAnimationFrame = function (callback) {
return mozRequestAnimationFrame(function () {
callback(global.performance.now());
});
};

// window.cancelAnimationFrame
global.cancelAnimationFrame = mozCancelAnimationFrame;
global.cancelAnimationFrame = global.mozCancelAnimationFrame;
}(window));
} else {
(function (global) {
global.requestAnimationFrame = function (callback) {
return global.setTimeout(callback, 1000 / 60);
return global.setTimeout(callback, 1000 / 60);
};

global.cancelAnimationFrame = global.clearTimeout;
Expand Down Expand Up @@ -4324,7 +4320,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ function(module, exports) {

module.exports = {
'version': '2.9.0',
'version': '2.9.1',
'svg_ns': 'http://www.w3.org/2000/svg'
};

Expand Down

0 comments on commit e3bea62

Please sign in to comment.