File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 45
45
_rdata = / ^ d a t a : [ ^ , ] + , / ,
46
46
47
47
_toString = { } . toString ,
48
+ _supportConsoleLog ,
49
+ _supportConsoleLogApply ,
48
50
49
51
50
52
Math = window . Math ,
249
251
} ,
250
252
251
253
log : function ( ) {
252
- if ( api . debug && window . console && console . log ) {
253
- if ( console . log . apply ) {
254
+ if ( api . debug && _supportConsoleLog ) {
255
+ if ( _supportConsoleLogApply ) {
254
256
console . log . apply ( console , arguments ) ;
255
257
}
256
258
else {
1793
1795
} ) ;
1794
1796
1795
1797
1796
- // @configuration
1798
+ // Configuration
1799
+ try {
1800
+ _supportConsoleLog = ! ! console . log ;
1801
+ _supportConsoleLogApply = ! ! console . log . apply ;
1802
+ }
1803
+ catch ( err ) { }
1804
+
1797
1805
if ( ! api . flashUrl ) { api . flashUrl = api . staticPath + 'FileAPI.flash.swf' ; }
1798
1806
if ( ! api . flashImageUrl ) { api . flashImageUrl = api . staticPath + 'FileAPI.flash.image.swf' ; }
1799
1807
if ( ! api . flashWebcamUrl ) { api . flashWebcamUrl = api . staticPath + 'FileAPI.flash.camera.swf' ; }
You can’t perform that action at this time.
0 commit comments