gregglind / micropilot

Lightweight event monitoring and observation in Firefox addons.
http://gregglind.github.com/micropilot/
4 stars 2 forks source link

lifetime() does not appear to return promise of micropilot instance #8

Closed ilanasegall closed 11 years ago

ilanasegall commented 11 years ago

Problem with lifetime - while mtp.data().then( function(data) { console.log(JSON.stringify(data,null,2)); } )

functions,

mtp.lifetime(3000).then(function(mtp){ console.log("entered fn"); //works! mtp.data().then( function(data) { console.log(JSON.stringify(data,null,2)); //does not work } ); })