node */
$(document).ready(function () {
$("body")
.append('
');
@@ -106,26 +106,26 @@
.css("paddingRight", "20px");
});
- /* attach a function to each of the Firebug methods */
+ /* attach a logging function to each of the usual Firebug methods */
var names = [
"log", "debug", "info", "warn", "error", "assert",
"dir", "dirxml", "group", "groupEnd", "time", "timeEnd",
"count", "trace", "profile", "profileEnd"
];
+ var logfunc = function(msg) {
+ $('#jQueryDebug')
+ .css("display", $._debug$ == true ? "block" : "none");
+ $('#jQueryDebug ol')
+ .append('
' + object2text(msg) + '').css;
+ $("#jQueryDebug ol li")
+ .css("borderBottom", "1px solid #cccccc")
+ .css("padding", "1px 10px 1px 10px");
+ };
window.console = {};
- for (var i = 0; i < names.length; i++) {
- window.console[names[i]] = function(msg) {
- $('#jQueryDebug')
- .css("display", $._debug$ == true ? "block" : "none");
- $('#jQueryDebug ol')
- .append('
' + object2text(msg) + '').css;
- $("#jQueryDebug ol li")
- .css("borderBottom", "1px solid #cccccc")
- .css("padding", "1px 10px 1px 10px");
- }
- }
+ for (var i = 0; i < names.length; i++)
+ window.console[names[i]] = logfunc;
- /* indicate that we are the one who is proving the Firebug interface */
+ /* indicate that we are the one who is providing the Firebug interface */
window.console["jQueryDebug"] = true;
}
});