Tj Holowaychuk
14 years ago
4 changed files with 33 additions and 19 deletions
@ -0,0 +1,27 @@ |
|||
|
|||
/*! |
|||
* Canvas - Image |
|||
* Copyright (c) 2010 LearnBoost <tj@learnboost.com> |
|||
* MIT Licensed |
|||
*/ |
|||
|
|||
/** |
|||
* Module dependencies. |
|||
*/ |
|||
|
|||
var Canvas = require('../build/default/canvas') |
|||
, Image = Canvas.Image; |
|||
|
|||
/** |
|||
* Inspect image. |
|||
* |
|||
* @return {String} |
|||
* @api public |
|||
*/ |
|||
|
|||
Image.prototype.inspect = function(){ |
|||
return '[Image' |
|||
+ (this.complete ? ' complete' : '') |
|||
// + ' ' + this.src
|
|||
+ ']'; |
|||
}; |
Loading…
Reference in new issue