Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bfred-it committed May 8, 2017
1 parent 796f761 commit 786ce9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions dist/ofi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! npm.im/object-fit-images 3.2.1 */
/*! npm.im/object-fit-images 3.2.2 */
var objectFitImages = (function () {
'use strict';

Expand Down Expand Up @@ -181,14 +181,15 @@ function hijackAttributes() {
function fix(imgs, opts) {
var startAutoMode = !autoModeEnabled && !imgs;
opts = opts || {};
imgs = imgs || 'img';

if ((supportsObjectPosition && !opts.skipTest) || !supportsOFI) {
return false;
}

// use imgs as a selector or just select all images
if (typeof imgs === 'string') {
if (!imgs) {
imgs = document.getElementsByTagName('img');
} else if (typeof imgs === 'string') {
imgs = document.querySelectorAll(imgs);
} else if (!('length' in imgs)) {
imgs = [imgs];
Expand Down
4 changes: 2 additions & 2 deletions dist/ofi.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "object-fit-images",
"version": "3.2.1",
"version": "3.2.2",
"description": "Polyfill object-fit and object-position on images on IE9, IE10, IE11, Edge, Safari, ...",
"license": "MIT",
"repository": "bfred-it/object-fit-images",
Expand Down

0 comments on commit 786ce9d

Please sign in to comment.