Skip to content

Commit

Permalink
Bit of a tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
Stu Cox committed Mar 11, 2013
1 parent cd3b2c6 commit acc75ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions feature-detects/canvas/todataurl.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
}]
}
!*/
define(['Modernizr', 'addTest', 'createElement', 'test/canvas'], function( Modernizr, addTest, createElement ) {
define(['Modernizr', 'createElement', 'test/canvas'], function( Modernizr, createElement ) {

var canvas = createElement('canvas');

addTest('todataurljpeg', function() {
Modernizr.addTest('todataurljpeg', function() {
return !!Modernizr.canvas && canvas.toDataURL('image/jpeg').indexOf('data:image/jpeg') === 0;
});
addTest('todataurlpng', function() {
Modernizr.addTest('todataurlpng', function() {
return !!Modernizr.canvas && canvas.toDataURL('image/png').indexOf('data:image/png') === 0;
});
addTest('todataurlwebp', function() {
Modernizr.addTest('todataurlwebp', function() {
return !!Modernizr.canvas && canvas.toDataURL('image/webp').indexOf('data:image/webp') === 0;
});

Expand Down

0 comments on commit acc75ed

Please sign in to comment.