put initializers back in... what was I thinking?

master
Evan Owen 13 years ago committed by Aaron Heckmann
parent c6b3db636f
commit c61c116fd7
  1. 4
      index.js
  2. 3
      lib/command.js
  3. 2
      lib/getters.js

@ -22,6 +22,10 @@ function gm (source, height, color) {
return new gm(source, height, color);
}
this.data = {};
this._in = [];
this._out = [];
if(source instanceof Stream) {
this.sourceStream = source;
source = height || 'unknown.jpg';

@ -30,10 +30,7 @@ module.exports = function (proto) {
}
}
proto._in = [];
proto.in = args('_in');
proto._out = [];
proto.out = args('_out');
/**

@ -7,8 +7,6 @@
module.exports = function (proto) {
proto.data = {};
;['size', 'format', 'depth', 'color', 'res', 'filesize'].forEach(function (getter) {
proto[getter] = function (callback) {

Loading…
Cancel
Save