Ejemplo n.º 1
0
        public static void ScriptsChanged()
        {
            BundleUtils.ClearVersionCache();
            var instance = ScriptBundleManager.instance;

            if (instance != null &&
                instance.bundleByKey != null)
            {
                foreach (var bundle in instance.bundleByKey.Values)
                {
                    bundle.Changed();
                }
            }

            instance = null;
        }
Ejemplo n.º 2
0
        public static void CssChanged()
        {
            BundleUtils.ClearVersionCache();
            cssBundles = null;

            if (isEnabled && bundleByKey != null)
            {
                var s = bundleByKey;
                if (s != null)
                {
                    foreach (var bundle in s.Values)
                    {
                        bundle.Changed();
                    }
                }

                isInitialized = false;
            }
        }