| 10509 | return (v && v.length && v !== window && v[0] && (v[0] === window || (v[0].nodeType && v[0].style && !v.nodeType))); //we cannot check "nodeType" if the target is window from within an iframe, otherwise it will trigger a security error in some browsers like Firefox. |
| 10510 | }, |
| 10511 | _autoCSS = function(vars, target) { |
| 10512 | var css = {}, |
| 10513 | p; |
| 10514 | for (p in vars) { |
| 10515 | if (!_reservedProps[p] && (!(p in target) || p === "transform" || p === "x" || p === "y" || p === "width" || p === "height" || p === "className" || p === "border") && (!_plugins[p] || (_plugins[p] && _plugins[p]._autoCSS))) { //note: <img> elements contain read-only "x" and "y" properties. We should also prioritize editing css width/height rather than the element's properties. |
| 10516 | css[p] = vars[p]; |
| 10517 | delete vars[p]; |
| 10518 | } |
| 10519 | } |
| 10520 | vars.css = css; |
| 10521 | }; |
| 10522 | |
| 10523 | p = TweenLite.prototype = new Animation(); |
| 10524 | p.constructor = TweenLite; |