Skip to content

Commit c4f0046

Browse files
committed
simplify THREE.error/warning/log redirects to console.*
1 parent 632002c commit c4f0046

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

src/Three.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,10 @@ if ( Math.sign === undefined ) {
2525
}
2626

2727

28-
THREE.ConsoleErrorHandler = function() {
29-
console.error( arguments );
30-
};
31-
32-
THREE.ConsoleWarningHandler = function() {
33-
console.warn( arguments );
34-
};
35-
36-
THREE.ConsoleLogHandler = function() {
37-
console.log( arguments );
38-
};
39-
40-
// set the default error handlers
41-
THREE.error = THREE.ConsoleErrorHandler;
42-
THREE.warning = THREE.ConsoleWarningHandler;
43-
THREE.log = THREE.ConsoleLogHandler;
28+
// set the default log handlers
29+
THREE.error = function() { console.error.apply( console, arguments ); }
30+
THREE.warning = function() { console.warn.apply( console, arguments ); }
31+
THREE.log = function() { console.log.apply( console, arguments ); }
4432

4533

4634
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.button

0 commit comments

Comments
 (0)