Skip to content

Commit

Permalink
Add ability for window.picturePolyfill to accept an element as stated…
Browse files Browse the repository at this point in the history
… in the read me
  • Loading branch information
DEfusion committed Mar 22, 2014
1 parent 065dff0 commit eac0721
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function(grunt) {
grunt.initConfig({
// Metadata.
meta: {
version: '2.0.5'
version: '2.0.6'
},
banner: '/*! picturePolyfill - v<%= meta.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "picturePolyfill",
"version": "2.0.5",
"version": "2.0.6",
"main": "picturePolyfill.js",
"ignore": [
".idea",
Expand Down
2 changes: 1 addition & 1 deletion picturePolyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@

if (!window.HTMLPictureElement) {
initialize();
w.picturePolyfill = parseWholeDocument;
w.picturePolyfill = function(element) { parsePictures(element || document); };
}
else {
w.picturePolyfill = function() {};
Expand Down
4 changes: 2 additions & 2 deletions picturePolyfill.min.js

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

0 comments on commit eac0721

Please sign in to comment.