Skip to content

Commit

Permalink
Updating the check not to refer to Rx.defaultServiceId rather just
Browse files Browse the repository at this point in the history
establish that destination and source providers are not the same
  • Loading branch information
dima committed Sep 22, 2010
1 parent 041011a commit 0474447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/src/org/restfulx/controllers/ChangeController.as
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ package org.restfulx.controllers {
protected function onCacheUpdate(event:CacheUpdateEvent):void {
if (source == null || destination == null) return;

if (Rx.enableSync && (event.serviceProvider != null && destination.id == event.serviceProvider.id)
&& source.id != Rx.defaultServiceId) {
if (Rx.enableSync && (event.serviceProvider != null && destination.id == event.serviceProvider.id
&& source.id != event.serviceProvider.id)) {
if (pullModels.indexOf(event.fqn) != -1 && event.data != null) {
pullModels = pullModels.filter(function(item:*, index:int, a:Array):Boolean {
return item != event.fqn;
Expand Down

0 comments on commit 0474447

Please sign in to comment.