Sha256: ca21354e0198ed462abbcc985c846cea83a0fc279edb696080a097a7c7e5583b
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
<!-- Copyright 2006 Laszlo Systems --> <library> <trait name="cssable"> <!-- Attributes are supported --> <attribute name="cssPropertyMap" value="null"/> <attribute name="cssStyle" value="null" /> <!-- Declaring this here should work, but doesn't. See LPP-2490 --> <handler name="onconstruct" method="_applyCSS" /> <method name="_applyCSS"> // Look up the style this.cssStyle = LzCSSStyle.getComputedStyle( this ); var st = this.cssStyle; // put it in a register // Debug.write("mystyle is...", mystyle); if (st != null) { for (var k in this.cssPropertyMap) { var lzxPropertyName = k var cssPropertyName = this.cssPropertyMap[k]; // Debug.write("cssName ", cssName, ", lzxPropertyName ", lzxPropertyName); var v = st.getPropertyValue( cssPropertyName ); // this seems to be coming back null. if (v != null) { // Debug.write("setting value ", v , "for property", lzxPropertyName); this.setAttribute(lzxPropertyName, v); } } } </method> </trait> </library>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leftplayer-0.1.1 | src/lps-4.9.0/Server/lps-4.9.0/lps/utils/traits/cssable.lzx |
leftplayer-0.1 | src/lps-4.9.0/Server/lps-4.9.0/lps/utils/traits/cssable.lzx |