Skip to content

Commit

Permalink
Updates Immutable dependency to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelbr committed Nov 3, 2014
1 parent fa1da08 commit 19f9cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"homepage": "https://github.com/omniscientjs/immstruct",
"dependencies": {
"immutable": "^2.5.1",
"immutable": "^3.0.2",
"inherits": "^2.0.1"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/structure.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var Immutable = require('immutable');
var Cursor = require('immutable/contrib/cursor');
var EventEmitter = require('events').EventEmitter;
var inherits = require('inherits');
var utils = require('./utils');
Expand Down Expand Up @@ -27,7 +28,7 @@ Structure.prototype.cursor = function (path) {
path = path || [];

var self = this;
return self.current.cursor(path,
return Cursor.from(self.current, path,
handlePersisting(self,
handleUpdate(self, function (newData, oldData, path) {
self.current = self.current.updateIn(path, function (data) {
Expand Down

0 comments on commit 19f9cdb

Please sign in to comment.