Comparing version 1.1.0 to 1.2.0
module.exports = function createCanvas2D(opt) { | ||
if (typeof document === 'undefined') | ||
return null | ||
opt = opt||{} | ||
@@ -3,0 +5,0 @@ var canvas = opt.canvas || document.createElement('canvas') |
{ | ||
"name": "2d-context", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "grabs a new 2d canvas context", | ||
@@ -20,2 +20,3 @@ "main": "index.js", | ||
"scripts": { | ||
"test-node": "node test-node.js | faucet", | ||
"test": "browserify test.js | testling | faucet" | ||
@@ -22,0 +23,0 @@ }, |
3611
5
19