Skip to content

Commit

Permalink
Rename CollaborativeMap.delete to CollaborativeMap.remove
Browse files Browse the repository at this point in the history
  • Loading branch information
larry committed Jul 11, 2014
1 parent 65b30f5 commit af66810
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/js/rtpg.list.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ rtpg.list.garbageCollectCursorMap = function () {
for(var i = 0, len = keys.length; i < len; i++){
if(!rtpg.getCollaborator(keys[i])){
// Delete non existing collaborators
rtpg.list.cursors.delete(keys[i]);
rtpg.list.cursors.remove(keys[i]);
} else {
// Create listeners for collaborators that already existed when the document opened
rtpg.list.cursors.get(keys[i]).onReferenceShifted(rtpg.list.onRealtimeReferenceShifted);
Expand Down
2 changes: 1 addition & 1 deletion app/js/rtpg.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ rtpg.map.onRealtime = function(evt) {
rtpg.map.onRemoveItem = function(evt) {
var key = $(rtpg.map.MAP_KEYS_SELECTOR).val();
if (key != null) {
rtpg.map.field.delete(key);
rtpg.map.field.remove(key);
}
};

Expand Down

0 comments on commit af66810

Please sign in to comment.