src/editor.js
function _applyAttrs(context, attrs) {
    for (var attr in attrs) {
      if (attrs.hasOwnProperty(attr)) {
        context.setAttribute(attr, attrs[attr]);
      }
    }
  }
function _applyAttrs(context, attrs) {
    for (var attr in attrs) {
      if (attrs.hasOwnProperty(attr)) {
        context.setAttribute(attr, attrs[attr]);
      }
    }
  }
function _applyAttrs ( context , attrs ) { for ( var attr in attrs ) { if ( attrs . hasOwnProperty ( attr ) ) { context . setAttribute ( attr , attrs [ attr ] ) ; } } }
Applies attributes to a DOM object
@param  {object} context The DOM obj you want to apply the attributes to
@param  {object} attrs A key/value pair of attributes you want to apply
@returns {undefined}
Applies attributes to a DOM object