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