equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // for console support |
18 // for console support |
19 if ((typeof window.parent.console == 'undefined') || ( (/AppleWebKit/i.test(navigator.userAgent)) && !(/Version/i.test(navigator.userAgent))) ){ |
|
20 window.console = { |
19 window.console = { |
21 |
20 |
22 sprintf: function(args){ |
21 sprintf: function(args){ |
23 if (typeof args == 'undefined') { |
22 if (typeof args == 'undefined') { |
24 return null; |
23 return null; |
|
24 } else if (typeof args == 'string') { |
|
25 return args; |
25 } |
26 } |
26 |
27 |
27 if (args.length < 1) { |
28 if (args.length < 1) { |
28 return null; |
29 return null; |
29 }; |
30 }; |
30 |
31 |
31 if (typeof args[0] != 'string') { |
32 if (typeof args[0] != 'string') { |
32 return null; |
33 return this.sprintf(String(args[0])); |
33 } |
34 } |
34 |
35 |
35 if (typeof RegExp == 'undefined') { |
36 if (typeof RegExp == 'undefined') { |
36 return null; |
37 return null; |
37 } |
38 } |
124 var errorStr = console.sprintf(arguments); |
125 var errorStr = console.sprintf(arguments); |
125 if (errorStr) { |
126 if (errorStr) { |
126 // @todo |
127 // @todo |
127 } |
128 } |
128 } |
129 } |
129 } |
130 }; |
130 |
131 |
131 // enable the Console. |
132 // enable the Console. |
132 _BRIDGE_REF.nokia.layout._console_enabled = true; |
133 _BRIDGE_REF.nokia.layout._console_enabled = true; |
133 _BRIDGE_REF.nokia.layout.render(); |
134 _BRIDGE_REF.nokia.layout.render(); |
134 |
135 |
135 } |
|
136 |
136 |
137 // make TRUE console.js script loaded |
137 // make TRUE console.js script loaded |
138 window.parent.NOKIA.scriptsLoaded.console = true; |
138 window.parent.NOKIA.scriptsLoaded.console = true; |