From: short <> Date: Mon, 12 Dec 2005 17:31:18 +0000 (+0000) Subject: +"text/javascript" backward compatibility double-inclusion protection. X-Git-Url: http://git.jankratochvil.net/?p=MyWeb.git;a=commitdiff_plain;h=ff42a97e0d8275b2c44fd408e2cbfcd703067b56 +"text/javascript" backward compatibility double-inclusion protection. --- diff --git a/css_inherit.js b/css_inherit.js index 181e7ed..bd56707 100644 --- a/css_inherit.js +++ b/css_inherit.js @@ -22,6 +22,10 @@ // 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); + +}