Issue:
Got an exception when tried to add listener to db.
"undefined is not a function (evaluating 'a.addEventListener(b,c)')","name":"TypeError"}
How to reproduce on Safari of iOS 8/9:
var server;
db.open({
server: 'my-app',
version: 1,
schema: {
people: {
key: {keyPath: 'id', autoIncrement: true},
// Optionally add indexes
indexes: {
firstName: {},
answer: {unique: true}
}
}
}
}).then(function (s) {
server = s;
// The line will throw error
server.addEventListener('versionchange', function(e) {
});
});