Skip to content

Simple example error when using minified fin-hypergrid.min.js CDN #827

@jcmonnin

Description

@jcmonnin

When trying to run the simple example locally, I it worked with
<script src='https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.js'></script>
however it gave errors when using the minified version:
<script src='https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.min.js'></script>

image


Following page gives the error:

<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <meta http-equiv="Cache-Control" content="must-revalidate" />
  <link rel="icon" type="image/png" href="img/hypergrid-icon.png">
</head>

<body>

  <script src='https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.min.js'></script>

  <script>
    var grid = new fin.Hypergrid({
      data: [
        { symbol: 'APPL', name: 'Apple Inc.', prevclose: 93.13 },
        { symbol: 'MSFT', name: 'Microsoft Corporation', prevclose: 51.91 },
        { symbol: 'TSLA', name: 'Tesla Motors Inc.', prevclose: 196.40 },
        { symbol: 'IBM', name: 'International Business Machines Corp', prevclose: 155.35 }
      ]
    });
  </script>

</body>

</html>

This works:

<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <meta http-equiv="Cache-Control" content="must-revalidate" />
  <link rel="icon" type="image/png" href="img/hypergrid-icon.png">
</head>

<body>

  <script src='https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.js'></script>

  <script>
    var grid = new fin.Hypergrid({
      data: [
        { symbol: 'APPL', name: 'Apple Inc.', prevclose: 93.13 },
        { symbol: 'MSFT', name: 'Microsoft Corporation', prevclose: 51.91 },
        { symbol: 'TSLA', name: 'Tesla Motors Inc.', prevclose: 196.40 },
        { symbol: 'IBM', name: 'International Business Machines Corp', prevclose: 155.35 }
      ]
    });
  </script>

</body>

</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions