Skip to content

Commit

Permalink
Merge pull request #3 from DEfusion/master
Browse files Browse the repository at this point in the history
Add ability for window.picturePolyfill to accept an element as stated in readme
  • Loading branch information
verlok committed Mar 23, 2014
2 parents 065dff0 + eac0721 commit db854f2
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 db854f2

Please sign in to comment.