Dexie.js: [Dexie.Observable] unsubscribe from event "changes"

Created on 5 Jul 2016  路  2Comments  路  Source: dfahlander/Dexie.js

Hey all,

I am using db.on('changes', function() {}); construction, however is there a way to unsubscribe from that event?

Andrew

Most helpful comment

function subscriber (changes) {
}

// Subscribe 
db.on('changes', subscriber);

// Unsubscribe 
db.on('changes').unsubscribe (subscriber);

All 2 comments

function subscriber (changes) {
}

// Subscribe 
db.on('changes', subscriber);

// Unsubscribe 
db.on('changes').unsubscribe (subscriber);

thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

remusao picture remusao  路  3Comments

kamleshchandnani picture kamleshchandnani  路  4Comments

Script47 picture Script47  路  3Comments

oviniciuslara picture oviniciuslara  路  4Comments

asdip138 picture asdip138  路  3Comments