Stop Closure Compiler from stripping out FileReader support
This commit is contained in:
parent
ab5eb61b8d
commit
6ae24b8dae
8 changed files with 58 additions and 58 deletions
|
|
@ -132,7 +132,7 @@ C1PSerialPort.prototype.setBinding = function(sHTMLClass, sHTMLType, sBinding, c
|
|||
/*
|
||||
* Check for availability of FileReader
|
||||
*/
|
||||
if (window.FileReader && window.File && window.FileList) {
|
||||
if (window && 'FileReader' in window) {
|
||||
this.bindings[sBinding] = control;
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -474,7 +474,7 @@ FDC.prototype.setBinding = function(sHTMLClass, sHTMLType, sBinding, control)
|
|||
/*
|
||||
* Check for availability of FileReader
|
||||
*/
|
||||
if (window.FileReader && window.File && window.FileList) {
|
||||
if (window && 'FileReader' in window) {
|
||||
this.bindings[sBinding] = control;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue