Upgrade to ExtJS 3.2.1 - Released 04/27/2010
[extjs.git] / docs / source / debug.html
index 17ac027..f45088a 100644 (file)
@@ -1,11 +1,18 @@
-<html>\r
-<head>\r
-  <title>The source code</title>\r
-    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
-    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
-</head>\r
-<body  onload="prettyPrint();">\r
-    <pre class="prettyprint lang-js">Ext.debug = {};
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
+  <title>The source code</title>
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+</head>
+<body  onload="prettyPrint();">
+    <pre class="prettyprint lang-js">/*!
+ * Ext JS Library 3.2.1
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+Ext.debug = {};
 
 (function(){
 
@@ -93,7 +100,7 @@ function createConsole(){
 //     handleResize();
 
     function handleResize(){
-        var b = Ext.getBody()
+        var b = Ext.getBody();
         var size = b.getViewSize();
         if(size.height < b.dom.scrollHeight) {
             size.width -= 18;
@@ -237,10 +244,11 @@ Ext.debug.LogPanel = Ext.extend(Ext.Panel, {
     log : function(){
         var markup = [  '<div style="padding:5px !important;border-bottom:1px solid #ccc;">',
                     Ext.util.Format.htmlEncode(Array.prototype.join.call(arguments, ', ')).replace(/\n/g, '<br/>').replace(/\s/g, '&#160;'),
-                    '</div>'].join('');
+                    '</div>'].join(''),
+            bd = this.body.dom;
 
         this.body.insertHtml('beforeend', markup);
-        this.body.scrollTo('top', 100000);
+        bd.scrollTop = bd.scrollHeight;
     },
 
     clear : function(){
@@ -642,7 +650,7 @@ Ext.debug.ObjectInspector = Ext.extend(Ext.tree.TreePanel, {
         this.toggleFunc = function() {
             this.showFunc = !this.showFunc;
             this.refreshNodes(this.currentObject);
-        }
+        };
         this.bbar = new Ext.Toolbar([{
             text: 'Show Functions',
             enableToggle: true,
@@ -904,6 +912,6 @@ Ext.debug.HtmlNode = function(){
     });
 
     return HtmlNode;
-}();</pre>    \r
-</body>\r
+}();</pre>    
+</body>
 </html>
\ No newline at end of file