ingenta-lens
Version:
A novel way of seeing content.
20 lines (14 loc) • 480 B
JavaScript
var AnnotationView = require('../annotation').View;
var InlineImageView = function(node) {
AnnotationView.call(this, node);
};
InlineImageView.Prototype = function() {
this.createElement = function() {
var el = document.createElement('img');
el.setAttribute('src', this.node.url);
return el;
};
};
InlineImageView.Prototype.prototype = AnnotationView.prototype;
InlineImageView.prototype = new InlineImageView.Prototype();
module.exports = InlineImageView;