src/editor.js
function _applyStyles(context, attrs) {
    for (var attr in attrs) {
      if (attrs.hasOwnProperty(attr)) {
        context.style[attr] = attrs[attr];
      }
    }
  }
function _applyStyles(context, attrs) {
    for (var attr in attrs) {
      if (attrs.hasOwnProperty(attr)) {
        context.style[attr] = attrs[attr];
      }
    }
  }
function _applyStyles ( context , attrs ) { for ( var attr in attrs ) { if ( attrs . hasOwnProperty ( attr ) ) { context . style [ attr ] = attrs [ attr ] ; } } }
Applies styles 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 styles to a DOM object