Commit d440f986 authored by Nigel McNie's avatar Nigel McNie
Browse files

Added comments about when this file is included (developermode on).

parent f62164f7
/*
* debug.js - for developer use
*
* If you're developing for Mahara, you can put any javascript you want to use
* for debugging in here.
*
* This file will only be included if the configuration setting 'developermode'
* is enabled. You can enable this in config.php
*/
/*
* gives a nice, stable string representation for objects,
* ignoring any methods
*/
debugObject = function (obj) {
// gives a nice, stable string representation for objects,
// ignoring any methods
var keyValuePairs = [];
for (var k in obj) {
var v = obj[k];
......@@ -17,8 +29,10 @@ debugObject = function (obj) {
).join(", ") + "}");
};
/*
* gives a nice, stable string representation for objects
*/
debugObjectAll = function (obj) {
// gives a nice, stable string representation for objects
var keyValuePairs = [];
for (var k in obj) {
var v = obj[k];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment