fh-wfm-sync
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -207,2 +207,5 @@ /** | ||
$fh.sync.stopSync(this.datasetId, function(){ | ||
if (self.recordDeltaReceivedSubscription) { | ||
self.recordDeltaReceivedSubscription.dispose(); | ||
} | ||
deferred.resolve('sync loop stopped'); | ||
@@ -282,2 +285,11 @@ }, function(error){ | ||
DataManager.prototype.publishRecordDeltaReceived = function(mediator) { | ||
var self = this; | ||
self.recordDeltaReceivedSubscription = self.stream.filter(function(notification) { | ||
return notification.code == 'record_delta_received' | ||
}).subscribe(function(notification) { | ||
mediator.publish('wfm:sync:record_delta_received:' + self.datasetId, notification); | ||
}) | ||
}; | ||
module.exports = { | ||
@@ -284,0 +296,0 @@ init: init |
{ | ||
"name": "fh-wfm-sync", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "An sync module for WFM", | ||
@@ -5,0 +5,0 @@ "main": "lib/angular/sync-ng.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
796645
23102