UNPKG

ingenta-lens

Version:
20 lines (14 loc) 480 B
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;