MCPcopy
hub / github.com/IanLunn/Sequence / getStyle

Function getStyle

src/sequence.js:359–373  ·  view source on GitHub ↗

* Get the values of an element's CSS property * * @param {HTMLObject} element - The element to get the value from * @param {String} property - The CSS property to get the value of * @returns {String} value - The value from the element's CSS property

(element, property)

Source from the content-addressed store, hash-verified

357 * @returns {String} value - The value from the element's CSS property
358 */
359 function getStyle(element, property) {
360
361 var value;
362
363 // IE
364 if (element.currentStyle) {
365 value = element.currentStyle[property];
366 }
367
368 else if (document.defaultView && document.defaultView.getComputedStyle) {
369 value = document.defaultView.getComputedStyle(element, "")[property];
370 }
371
372 return value;
373 }
374
375 /**
376 * Cross Browser helper for addEventListener

Callers 1

defineSequenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…