all files / src/ Deleted.js

90.91% Statements 10/11
50% Branches 1/2
50% Functions 1/2
90.91% Lines 10/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24                           
'use strict';
 
var log = require('./Log.js').Logger('libZotero:Deleted');
 
module.exports = function(data){
	this.instance = 'Zotero.Deleted';
	Iif(typeof data === 'string'){
		this.deletedData = JSON.parse(data);
	}
	else {
		this.deletedData = data;
	}
	this.untilVersion = null;
	this.sinceVersion = null;
	this.waitingPromises = [];
	this.pending = false;
};
 
//create, save referece, and return a Promise that will be resolved
//the next time we finish a deleted request
module.exports.prototype.addWaiter = function(){
	
};