diff --git a/changelog.txt b/changelog.txt index 857c1ff..c89c843 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +11/03/2018 Added fix for canvas data attribute removal from apires03 + Bumped to 1.14.1 + 07/15/2018 Merge support for print event handlers from eakkew Include fix for CSS Variables (via inline styles set on HTML tag) Make documentation consistent diff --git a/package.json b/package.json index c16b9ec..8adc87d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "print-this", - "version": "1.14.0", + "version": "1.14.1", "description": "Printing plug-in for jQuery", "main": "printThis.js", "dependencies": { diff --git a/printThis.jquery.json b/printThis.jquery.json index b652200..a33e166 100644 --- a/printThis.jquery.json +++ b/printThis.jquery.json @@ -1,6 +1,6 @@ { "name": "printThis", - "version": "1.14.0", + "version": "1.14.1", "title": "printThis", "description": "Printing plug-in for jQuery. Print specific page elements, add print options, maintain or add new styling using jQuery.", "author": { diff --git a/printThis.js b/printThis.js index 1b794a4..675b00c 100755 --- a/printThis.js +++ b/printThis.js @@ -1,5 +1,5 @@ /* - * printThis v1.14.0 + * printThis v1.14.1 * @desc Printing plug-in for jQuery * @author Jason Day * @@ -232,7 +232,13 @@ this.getContext('2d').drawImage($src[0], 0, 0); // Remove the markup from the original - $src.removeData('printthis'); + if ($.isFunction($.fn.removeAttr)) { + $src.removeAttr('data-printthis'); + } else { + $.each($src, function(i, el) { + el.removeAttribute('data-printthis') + }); + } }); }