Skip to content

Commit f7f4d1c

Browse files
committed
fix missing deleteIn
Fixes immutable-js#251
1 parent c6f5893 commit f7f4d1c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

dist/immutable.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ var Map = function Map(value) {
12761276
remove: function(k) {
12771277
return updateMap(this, k, NOT_SET);
12781278
},
1279-
removeIn: function(keyPath) {
1279+
deleteIn: function(keyPath) {
12801280
return this.updateIn(keyPath, (function() {
12811281
return NOT_SET;
12821282
}));
@@ -1391,6 +1391,7 @@ var IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@';
13911391
var MapPrototype = Map.prototype;
13921392
MapPrototype[IS_MAP_SENTINEL] = true;
13931393
MapPrototype[DELETE] = MapPrototype.remove;
1394+
MapPrototype.removeIn = MapPrototype.deleteIn;
13941395
var ArrayMapNode = function ArrayMapNode(ownerID, entries) {
13951396
this.ownerID = ownerID;
13961397
this.entries = entries;

0 commit comments

Comments
 (0)