'use strict';

var AnnotationComponent = require('substance/ui/AnnotationComponent');

function XRefComponent() {
  XRefComponent.super.apply(this, arguments);
}

XRefComponent.Prototype = function() {

  var _super = XRefComponent.super.prototype;

  this.render = function($$) {
    var el = _super.render.apply(this, arguments);
    el.addClass('sm-'+this.props.node.referenceType);
    return el;
  };
};

AnnotationComponent.extend(XRefComponent);

module.exports = XRefComponent;

@@ -273,16 +273,39 @@
 on($$) %7B
+ // eslint-disable-line
 %0A    var

Fix linter.