var_gsScope=(typeof(module)!=="undefined"&&module.exports&&typeof(global)!=="undefined")?global:this||window;//helps ensure compatibility with AMD/RequireJS and CommonJS/Node
selector=(pseudo?"":",")+selector.split("::").join(":").toLowerCase()+",";//note: old versions of IE report tag name selectors as upper case, so we just change everything to lowercase.
if(pseudo){
a=[];
}
while(--i>-1){
//Firefox may throw insecure operation errors when css is loaded from other domains, so try/catch.
try{
curSS=ss[i][ruleProp];
if(!curSS){
continue;
}
j=curSS.length;
}catch(e){
console.log(e);
continue;
}
while(--j>-1){
cs=curSS[j];
if(cs.selectorText&&(","+cs.selectorText.split("::").join(":").toLowerCase()+",").indexOf(selector)!==-1){//note: IE adds an extra ":" to pseudo selectors, so .myClass:after becomes .myClass::after, so we need to strip the extra one out.
if(pseudo){
a.push(cs.style);
}else{
returncs.style;
}
}
}
}
returna;
};
// @private gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.
CSSPlugin.prototype._onInitTween.call(this,div,value,tween);//we just offload all the work to the regular CSSPlugin and then copy the cssText back over to the rule in the setRatio() method. This allows us to have all of the updates to CSSPlugin automatically flow through to CSSRulePlugin instead of having to maintain both
returntrue;
};
// @private gets called every time the tween updates, passing the new ratio (typically a value between 0 and 1, but not always (for example, if an Elastic.easeOut is used, the value can jump above 1 mid-tween). It will always start and 0 and end at 1.