This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 0.5.0 - Update to Immutable 3.0. | |
* 0.4.6-0.4.7 - Maintenance releases. | |
* 0.4.5 - Update to Immutable 2.5. Make `TransactionContext` mutable. | |
* 0.4.4 - Update to Immutable 2.3. Add `Binding.toJS` method. | |
* 0.4.3 - Fix: Morearty.isChanged now checks equality with Sequence.equals. | |
* 0.4.2 - Moved browserify-shim transform to build script as it applies on each module require. | |
* 0.4.1 - Fix #22 (index.js and dist/morearty.js are not in npm package). | |
* 0.4.0 - Normalize dependencies (no need to pass React and Immutable around). New standalone build (thanks to Marat Bektimirov). Fixes #19. | |
* 0.3.6 - Fix incorrect behavior of `Binding.clear`. Correct `Context.isChanged` when rendering on requestAnimationFrame. Minor improvements. | |
* 0.3.5 - Fix caching issue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['transit', 'immutable'], function (Transit, Imm) { | |
'use strict'; | |
var reader = Transit.reader('json', { | |
arrayBuilder: { | |
init: function () { return Imm.List.of().asMutable(); }, | |
add: function (ret, val) { return ret.push(val); }, | |
finalize: function (ret) { return ret.asImmutable(); }, | |
fromArray: function (arr) { return Imm.List(arr); } | |
}, |
NewerOlder