Beispiel #1
0
	onDidChange(cb) {
		return this.emitter.on('did-change', cb);
	}
Beispiel #2
0
			this.subscriptions.add(this.editor.buffer.onWillSave(() => {
				if (global.collaby.saving === true) return;
				let relativized = atom.project.relativizePath(this.editor.buffer.file.path);
				console.log("emitting save", {relPath: relativized[1], project: path.basename(relativized[0])});
				this.emitter.emit('will-save', {relPath: relativized[1], project: path.basename(relativized[0])});
			}));