src/editor.js
function _getStyle(el, styleProp) {
    var x = el
      , y = null;
    if (window.getComputedStyle) {
      y = document.defaultView.getComputedStyle(x, null).getPropertyValue(styleProp);
    }
    else if (x.currentStyle) {
      y = x.currentStyle[styleProp];
    }
    return y;
  }
function _getStyle(el, styleProp) {
    var x = el
      , y = null;
    if (window.getComputedStyle) {
      y = document.defaultView.getComputedStyle(x, null).getPropertyValue(styleProp);
    }
    else if (x.currentStyle) {
      y = x.currentStyle[styleProp];
    }
    return y;
  }
function _getStyle ( el , styleProp ) { var x = el , y = null ; if ( window . getComputedStyle ) { y = document . defaultView . getComputedStyle ( x , null ) . getPropertyValue ( styleProp ) ; } else if ( x . currentStyle ) { y = x . currentStyle [ styleProp ] ; } return y ; }
Returns a DOM objects computed style
@param  {object} el The element you want to get the style from
@param  {string} styleProp The property you want to get from the element
@returns {string} Returns a string of the value. If property is not set it will return a blank string
Returns a DOM objects computed style