diff --git a/README.md b/README.md index ddf1519..5c1d5fa 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ $("#elem").wScratchPad('image', './images/winner.png'); ```js $('#elem').wScratchPad('reset'); $('#elem').wScratchPad('clear'); -$('#elem').wScratchPad('enabled', ); +$('#elem').wScratchPad('enable', ); ``` diff --git a/src/wScratchPad.js b/src/wScratchPad.js index 649de29..56de185 100644 --- a/src/wScratchPad.js +++ b/src/wScratchPad.js @@ -29,7 +29,7 @@ this.$el.css('position', 'relative'); } - this.$img = $('').attr('crossOrigin', '').css({position: 'absolute', width: '100%', height: '100%'}); + this.$img = $('').css({position: 'absolute', width: '100%', height: '100%'}); // Make sure we sett style width height here for elastic stretch // and better support for mobile if we are resizing the scratch pad. @@ -316,4 +316,4 @@ first.target.dispatchEvent(simulatedEvent); }); }; -})(jQuery); \ No newline at end of file +})(jQuery);