Dead simple jQuery log function
Works with IE
by jamesdh
JavaScript
$.log = $.fn.log = function (msg) {
if (window.console && window.console.log) {
console.log("%s: %o", msg, this);
}
return this;
};
by jamesdh
$.log = $.fn.log = function (msg) {
if (window.console && window.console.log) {
console.log("%s: %o", msg, this);
}
return this;
};