'use strict';

var HeadFoot = require('./HeadFoot');

/**
 * Footer class
 * @constructor
 */
function Footer(editor,_documentBody){
  HeadFoot.call(this,editor,_documentBody);
  $(this.node).appendTo(this._documentBody);
}

Footer.prototype = Object.create(HeadFoot.prototype);

module.exports = Footer;

'use strict';

var HeadFoot = require('./HeadFoot');

/**
 * Footer class
 * @constructor
 */
function Footer(editor,_documentBody){
  HeadFoot.call(this,editor,_documentBody);
  $(this.node).appendTo(this._documentBody);
}

Footer.prototype = Object.create(HeadFoot.prototype);

/**
 * Create a new node for the footer.
 * @private
 * @method
 * @override HeadFoot.prototype._createNode()
 */
Footer.prototype._createNode = function(){
  HeadFoot.prototype._createNode.call(this);
  $(this.node).attr('data-footer',true);
};

module.exports = Footer;

implement Footer.prototype._createNode() that overrides HeadFoot.prototype._createNode()