syncfusion / JavaScript-Widgets

Syncfusion Essential JavaScript is a comprehensive collection of over 80+ enterprise-grade HTML5 JavaScript components for building modern web applications.
http://www.syncfusion.com/products/javascript
35 stars 36 forks source link

Ternary operator issues #19

Open Janatbek opened 6 years ago

Janatbek commented 6 years ago

after upgrading to "syncfusion-javascript": "^16.2.0-mu.4" we are facing an issue that the page is not opening at all on IE 11 the console error says image

clicking the error it brings to Microsoft Docs Page The application opens fine in Chrome but won't load in IE

the Tech stack: Angular, c#

some sample code where it might break:

import {EJComponents} from 'ej-angular2/src/ej/core';
declare var ej: any;

and in diagram settings:

this.vizLayout = {
      type: 'hierarchicaltree',
      marginY: 50,
      horizontalSpacing: 30,
      verticalSpacing: 40
    };
    this.vizPageSettings = {
      multiplePage: false,
      scrollLimit: 'diagram'
    };
    this.vizSnapSettings = {
      snapConstraints: 'none'
    };
    this.vizConstraints = ej.datavisualization.Diagram.DiagramConstraints.Default;
    this.vizTool = ej.datavisualization.Diagram.Tool.ZoomPan;
  }

If I put debugger before this setting the application opens fine and breaks after setup, but If I remove debugger, the app won't load