MCPcopy Create free account
hub / github.com/codrops/RainEffect / _removeProp

Function _removeProp

demo/js/index.js:8468–8479  ·  view source on GitHub ↗
(s, p)

Source from the content-addressed store, hash-verified

8466
8467
8468 var _removeProp = function(s, p) {
8469 if (p) {
8470 if (s.removeProperty) {
8471 if (p.substr(0,2) === "ms" || p.substr(0,6) === "webkit") { //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be "ms-transform" instead of "-ms-transform" for IE9, for example)
8472 p = "-" + p;
8473 }
8474 s.removeProperty(p.replace(_capsExp, "-$1").toLowerCase());
8475 } else { //note: old versions of IE use "removeAttribute()" instead of "removeProperty()"
8476 s.removeAttribute(p);
8477 }
8478 }
8479 },
8480 _setClassNameRatio = function(v) {
8481 this.t._gsClassPT = this;
8482 if (v === 1 || v === 0) {

Callers 3

index.jsFile · 0.85
_setClassNameRatioFunction · 0.85
_setClearPropsRatioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected