You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ko...@apache.org on 2014/09/01 13:15:45 UTC

git commit: [OLINGO-418] add fix when using the lasted rxjs library for testing, detail: add call to observable.dispose()

Repository: olingo-odata4-js
Updated Branches:
  refs/heads/master ccb8c5468 -> 4246fca7b


[OLINGO-418] add fix when using the lasted rxjs library for testing, detail: add call to observable.dispose()


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/commit/4246fca7
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/tree/4246fca7
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/diff/4246fca7

Branch: refs/heads/master
Commit: 4246fca7bdaa5300997fab50a4a0ccc990d57188
Parents: ccb8c54
Author: Sven Kobler <sv...@sap.com>
Authored: Mon Sep 1 13:15:37 2014 +0200
Committer: Sven Kobler <sv...@sap.com>
Committed: Mon Sep 1 13:15:37 2014 +0200

----------------------------------------------------------------------
 odatajs/src/lib/cache.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/blob/4246fca7/odatajs/src/lib/cache.js
----------------------------------------------------------------------
diff --git a/odatajs/src/lib/cache.js b/odatajs/src/lib/cache.js
index 3407fee..cc047f0 100644
--- a/odatajs/src/lib/cache.js
+++ b/odatajs/src/lib/cache.js
@@ -629,7 +629,10 @@ function DataCache(options) {
 
             that.readRange(index, pageSize).then(successCallback, errorCallback);
 
-            return { Dispose: function () { disposed = true; } };
+            return { Dispose: function () { 
+                obs.dispose(); // otherwise the check isStopped obs.onNext(data.value[i]);
+                disposed = true; 
+                } };
         });
     };