static CssBundleManager() { DynamicScriptManager.ScriptChanged += name => { HashSet <string> bundleKeys; var b = bundleKeysBySourceUrl; if (b != null && b.TryGetValue("dynamic://" + name, out bundleKeys)) { foreach (var bundleKey in bundleKeys) { DynamicScriptManager.Changed("Bundle." + bundleKey); } } }; }
static ScriptBundleManager() { DynamicScriptManager.ScriptChanged += name => { var instance = ScriptBundleManager.instance; HashSet <string> bundleKeys; if (instance != null && instance.bundleKeysBySourceUrl != null && instance.bundleKeysBySourceUrl.TryGetValue("dynamic://" + name, out bundleKeys)) { foreach (var bundleKey in bundleKeys) { DynamicScriptManager.Changed("Bundle." + bundleKey); } } }; }