From fcf04bf7f59241428ddd9560489677bdff7e88a0 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Tue, 22 Nov 2016 07:27:58 -0800 Subject: [PATCH] add non-working listener methods --- lib/browser/lists.js | 5 ++++- lib/browser/results.js | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/browser/lists.js b/lib/browser/lists.js index af90250e..df4e63c7 100644 --- a/lib/browser/lists.js +++ b/lib/browser/lists.js @@ -30,7 +30,10 @@ createMethods(List.prototype, objectTypes.LIST, [ 'filtered', 'sorted', 'snapshot', - 'isValid', + 'isValid', + 'addListener', + 'removeListener', + 'removeAllListeners', ]); // Mutating methods: diff --git a/lib/browser/results.js b/lib/browser/results.js index 887a7dd1..6dd4e6b0 100644 --- a/lib/browser/results.js +++ b/lib/browser/results.js @@ -30,6 +30,9 @@ createMethods(Results.prototype, objectTypes.RESULTS, [ 'sorted', 'snapshot', 'isValid', + 'addListener', + 'removeListener', + 'removeAllListeners', ]); export function createResults(realmId, info) {