Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / js / Guides.js
diff --git a/docs/js/Guides.js b/docs/js/Guides.js
deleted file mode 100644 (file)
index 5498009..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * Takes care of loading guides.
- */
-Ext.define("Docs.Guides", {
-    singleton: true,
-
-    /**
-     * Loads guide with given name.
-     *
-     * @param {String} name  name of the guide
-     * @param {Boolean} noHistory  true to not add browser history entry
-     */
-    load: function(name, noHistory) {
-        noHistory || Docs.History.push("/guide/" + name);
-
-        Ext.data.JsonP.request({
-            url: Docs.App.getBaseUrl() + "/guides/" + name + "/README.js",
-            callbackName: name,
-            success: function(json) {
-                this.render(json.guide);
-            },
-            scope: this
-        });
-    },
-
-    render: function(html) {
-        Ext.get("api-guide").update(html);
-        this.syntaxHighlight();
-    },
-
-    // Marks all code blocks with "prettyprint" class and then calls
-    // the prettify library function to highlight them.
-    syntaxHighlight: function() {
-        Ext.Array.forEach(Ext.query("pre > code"), function(el) {
-            Ext.get(el).addCls("prettyprint");
-        });
-        prettyPrint();
-    }
-});