* 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
(el, styleProp)
| 39 | * @returns {string} Returns a string of the value. If property is not set it will return a blank string |
| 40 | */ |
| 41 | function _getStyle(el, styleProp) { |
| 42 | var x = el |
| 43 | , y = null; |
| 44 | if (window.getComputedStyle) { |
| 45 | y = document.defaultView.getComputedStyle(x, null).getPropertyValue(styleProp); |
| 46 | } |
| 47 | else if (x.currentStyle) { |
| 48 | y = x.currentStyle[styleProp]; |
| 49 | } |
| 50 | return y; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Saves the current style state for the styles requested, then applies styles |
no outgoing calls
no test coverage detected