Skip to content

Using treo-websql plugin in IE 11 #47

Description

@vlad-shevchenko

The following code works in Chrome but fails in IE 11:

requirejs(["app/treo/treo", "app/treo/treo-websql"], function (treo, treoWebsql) {
  var schema = treo.schema().
        version(1)
            .addStore("data", {increment: true})
                .addIndex("index", "indexFld");

    var dbObj = treo("db", schema).use(treoWebsql());
    dbObj.version = 1;

     var os = dbObj.store("data");

    os.put(undefined, {data: "data", indexFld: 1}, function () {console.log("ok")})
})

It fails with "DataError" (that's all information IE gives) at 145 line of treo.js (I just copied file content from repository) while trying to put an entity.

If I remove autoincrementing and provide a key for entities, it works. I suspect I may use treo incorrectly. Could you confirm it's a bug or point me to my mistake?

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