File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 1.0.2] - 2017-08-25
8+ ### Fixed
9+ - Fix error in mapToObject in src/react.index.js
10+
711## [ 1.0.1] - 2017-08-20
812### Fixed
913- Typo in documentation for ` React.createElement/3 `
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule ElixirScriptReact.Mixfile do
44 def project do
55 [
66 app: :elixir_script_react ,
7- version: "1.0.1 -react.15.6.1" ,
7+ version: "1.0.2 -react.15.6.1" ,
88 elixir: "~> 1.5" ,
99 start_permanent: Mix . env == :prod ,
1010 deps: deps ( ) ,
Original file line number Diff line number Diff line change @@ -3722,7 +3722,7 @@ var react = React_1;
37223722function mapToObject ( map ) {
37233723 const object = { } ;
37243724
3725- for ( [ key , value ] of map . entries ( ) ) {
3725+ for ( const [ key , value ] of map . entries ( ) ) {
37263726 if ( value instanceof Map ) {
37273727 object [ key ] = mapToObject ( value ) ;
37283728 } else {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import React from 'react';
33function mapToObject ( map ) {
44 const object = { } ;
55
6- for ( [ key , value ] of map . entries ( ) ) {
6+ for ( const [ key , value ] of map . entries ( ) ) {
77 if ( value instanceof Map ) {
88 object [ key ] = mapToObject ( value ) ;
99 } else {
You can’t perform that action at this time.
0 commit comments