Browse Source

Merge pull request #719 from LinusU/strict-mode

strict mode
v1.x
Juriy Zaytsev 9 years ago
parent
commit
2a64b48028
  1. 1
      lib/bindings.js
  2. 3
      lib/canvas.js
  3. 2
      lib/context2d.js
  4. 5
      lib/image.js
  5. 1
      lib/jpegstream.js
  6. 3
      lib/pngstream.js

1
lib/bindings.js

@ -1,2 +1,3 @@
'use strict';
module.exports = require('../build/Release/canvas');

3
lib/canvas.js

@ -1,3 +1,4 @@
'use strict';
/*!
* Canvas
@ -66,7 +67,7 @@ exports.Image = Image;
exports.ImageData = canvas.ImageData;
if (FontFace) {
function Font(name, path, idx) {
var Font = function Font(name, path, idx) {
this.name = name;
this._faces = {};

2
lib/context2d.js

@ -1,3 +1,5 @@
'use strict';
/*!
* Canvas - Context2d
* Copyright (c) 2010 LearnBoost <tj@learnboost.com>

5
lib/image.js

@ -1,3 +1,4 @@
'use strict';
/*!
* Canvas - Image
@ -32,9 +33,9 @@ Image.prototype.__defineSetter__('src', function(val){
/**
* Src getter.
*
*
* TODO: return buffer
*
*
* @api public
*/

1
lib/jpegstream.js

@ -1,3 +1,4 @@
'use strict';
/*!
* Canvas - JPEGStream

3
lib/pngstream.js

@ -1,3 +1,4 @@
'use strict';
/*!
* Canvas - PNGStream
@ -57,4 +58,4 @@ var PNGStream = module.exports = function PNGStream(canvas, sync) {
* Inherit from `EventEmitter`.
*/
PNGStream.prototype.__proto__ = Stream.prototype;
PNGStream.prototype.__proto__ = Stream.prototype;

Loading…
Cancel
Save