Skip to content

Commit

Permalink
fixup indentation formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jondavidjohn committed Sep 23, 2016
1 parent a29ee9e commit 2aef9ec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 23 deletions.
14 changes: 7 additions & 7 deletions dist/hidpi-canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

var pixelRatio = (function() {
var canvas = document.createElement('canvas'),
context = canvas.getContext('2d'),
backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
context = canvas.getContext('2d'),
backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;

return (window.devicePixelRatio || 1) / backingStore;
})(),
Expand Down
9 changes: 0 additions & 9 deletions dist/hidpi-canvas.min.js

This file was deleted.

14 changes: 7 additions & 7 deletions src/CanvasRenderingContext2D.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

var pixelRatio = (function() {
var canvas = document.createElement('canvas'),
context = canvas.getContext('2d'),
backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
context = canvas.getContext('2d'),
backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;

return (window.devicePixelRatio || 1) / backingStore;
})(),
Expand Down

0 comments on commit 2aef9ec

Please sign in to comment.