I have made a quick search about what is the mean of Firebug DOM tab coloring and I've got that:
Red colored bold text points "constructor function"
Green colored bold text points "user function".
What is the difference between the two type of functions.
For example: I have a page that included jQuery.js, foo.js and bar.js.
You know jQuery well,
here is the small piece of code in foo.js
var Foo = function () { this.createDiv = function () { var d = document.createElement('div'); d.style.width = '300px'; d.style.height = '300px'; d.style.backgroundColor = '#CCC'; document.body.appendChild(d); }; }
here is the another piece of code in bar.js
$(function() { var ins = new Foo(); ins.createDiv(); })
Finally, I am looking Firebug's DOM tab and the coloring is like just like that.
jQuery and $ is colored bold red that means constructor function. Foo is colored bold green that means user function.
What is the difference between them. Where I am missing something.
Thanks for your help.
Lorenzo