+"text/javascript" backward compatibility double-inclusion protection.
[MyWeb.git] / css_inherit.js
index 181e7ed..bd56707 100644 (file)
 // Be aware: Works only on CSS directly applied by the "class" attribute!
 // TODO: Warns on invalid inheritance rules.
 
+// Double-run protection due to the My::Web "text/javascript" compatibility hack.
+if (!window.var_My_css_inherit_done++) {
+       var var_My_css_inherit_done=1;
+
 var map;
 
 function map_set(from,to)
@@ -107,3 +111,5 @@ function addLoadEvent(func)
 }
 
 addLoadEvent(css_inherit);
+
+}