source: trunk/web/addons/job_monarch/lib/extjs/air/src/Debug.js @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 774 bytes
Line 
1/*
2 * Ext JS Library 0.30
3 * Copyright(c) 2006-2009, Ext JS, LLC.
4 * licensing@extjs.com
5 *
6 * http://extjs.com/license
7 */
8
9/*
10 * Useful debugging function similar to console.dir for air.
11 * This was ported from AS3 and the original code came from Adobe's help system.
12 */
13Ext.air.dir = function (obj, indent) {
14    indent = indent || 0;
15    var indentString = "";   
16   
17    for (var i = 0; i < indent; i++) {
18        indentString += "\t";
19    }
20   
21    var val;
22    for (var prop in obj) {
23        val = obj[prop];
24        if (typeof(val) == "object") {
25            air.trace(indentString + " " + prop + ": [Object]");
26            Ext.air.dir(val, indent + 1);
27        } else {
28            air.trace(indentString + " " + prop + ": " + val);
29        }
30    }
31};
Note: See TracBrowser for help on using the repository browser.