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

Commit

Permalink
3.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bfred-it committed May 12, 2017
1 parent 181ef73 commit bd8a2d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 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.2 */
/*! npm.im/object-fit-images 3.2.3 */
var objectFitImages = (function () {
'use strict';

Expand Down Expand Up @@ -181,13 +181,14 @@ 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 (!imgs) {
if (imgs === 'img') {
imgs = document.getElementsByTagName('img');
} else if (typeof imgs === 'string') {
imgs = document.querySelectorAll(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.2",
"version": "3.2.3",
"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 bd8a2d3

Please sign in to comment.