fallback for isimage
This commit is contained in:
parent
f97359706a
commit
068ff09cfe
|
@ -58,7 +58,7 @@
|
||||||
* @return {boolean} true if this is an image, false otherwise
|
* @return {boolean} true if this is an image, false otherwise
|
||||||
*/
|
*/
|
||||||
isImage: function() {
|
isImage: function() {
|
||||||
return this.get('mimetype').substr(0, 6) === 'image/';
|
return this.get('mimetype')? this.get('mimetype').substr(0, 6) === 'image/' : false;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue