Skip to content

Made it a UMD module#3

Open
mjsarfatti wants to merge 2 commits intotonipinel:masterfrom
mjsarfatti:master
Open

Made it a UMD module#3
mjsarfatti wants to merge 2 commits intotonipinel:masterfrom
mjsarfatti:master

Conversation

@mjsarfatti
Copy link
Copy Markdown

This polyfill seems great, I actually did 3 thing:

  1. made it into a UMD module, so it can be imported in bigger projects
  2. by consequence as a module it exports an init() function, so that it can be called on dom ready (instead of being immediately executed)
$(document).ready(function() {
    objectFitPolyfill.init();
});
  1. incorporated Fixed bug when class was not copied #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant