Skip to content

Commit 24e9861

Browse files
committed
asMutable/asImmutable on Cursor
1 parent 21f6f98 commit 24e9861

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
lines changed

dist/Immutable.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,16 @@ var Cursor = function Cursor(rootData, keyPath, onChange, length) {
21282128
return (m || Map.empty()).withMutations(fn);
21292129
}));
21302130
},
2131+
asMutable: function() {
2132+
return updateCursor(this, (function(m) {
2133+
return (m || Map.empty()).asMutable();
2134+
}));
2135+
},
2136+
asImmutable: function() {
2137+
return updateCursor(this, (function(m) {
2138+
return (m || Map.empty()).asImmutable();
2139+
}));
2140+
},
21312141
__iterate: function(fn, reverse) {
21322142
var $__0 = this;
21332143
var deref = this.deref();

0 commit comments

Comments
 (0)