Permalink
Browse files

Replace ad-hoc inheritance with Meteor._inherit calls

  • Loading branch information...
1 parent a51bc65 commit 7bd160192c7d7f2b81bf9c616f50f015a9e83425 @Slava Slava committed Feb 25, 2014
Showing with 2 additions and 4 deletions.
  1. +1 −3 packages/binary-heap/min-max-heap.js
  2. +1 −1 packages/minimongo/id_map.js
@@ -19,9 +19,7 @@ MinMaxHeap = function (comparator, options) {
}, options);
};
-var F = function () {};
-F.prototype = MaxHeap.prototype;
-MinMaxHeap.prototype = new F;
+Meteor._inherits(MinMaxHeap, MaxHeap);
_.extend(MinMaxHeap.prototype, {
set: function (id, value) {
@@ -3,5 +3,5 @@ LocalCollection._IdMap = function () {
IdMap.call(self, LocalCollection._idStringify, LocalCollection._idParse);
};
-LocalCollection._IdMap.prototype = IdMap.prototype;
+Meteor._inherits(LocalCollection._IdMap, IdMap);

0 comments on commit 7bd1601

Please sign in to comment.