1 // The class this file defines and its required classes 2 R.Engine.define({ 3 "class":"R.util.console.Webkit", 4 "requires":[ 5 "R.debug.ConsoleRef" 6 ] 7 }); 8 9 /** 10 * @class A debug console abstraction for Webkit browsers. 11 * @extends R.debug.ConsoleRef 12 */ 13 R.util.console.Webkit = R.debug.ConsoleRef.extend(/** @scope R.util.console.Webkit.prototype **/{ 14 15 constructor:function () { 16 }, 17 18 /** 19 * Write a debug message to the console 20 */ 21 info:function () { 22 console.log.apply(console, arguments); 23 }, 24 25 /** 26 * Write a debug message to the console 27 */ 28 debug:function () { 29 console.debug.apply(console, arguments); 30 }, 31 32 /** 33 * Write a warning message to the console 34 */ 35 warn:function () { 36 console.warn.apply(console, arguments); 37 }, 38 39 /** 40 * Write an error message to the console 41 */ 42 error:function () { 43 console.error.apply(console, arguments); 44 }, 45 46 /** 47 * Get the class name of this object 48 * 49 * @return {String} The string "R.util.console.Webkit" 50 */ 51 getClassName:function () { 52 return "R.util.console.Webkit"; 53 } 54 55 }); 56