File tree 4 files changed +7
-3
lines changed
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.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 1.0.2] - 2017-08-25
8
+ ### Fixed
9
+ - Fix error in mapToObject in src/react.index.js
10
+
7
11
## [ 1.0.1] - 2017-08-20
8
12
### Fixed
9
13
- 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
4
4
def project do
5
5
[
6
6
app: :elixir_script_react ,
7
- version: "1.0.1 -react.15.6.1" ,
7
+ version: "1.0.2 -react.15.6.1" ,
8
8
elixir: "~> 1.5" ,
9
9
start_permanent: Mix . env == :prod ,
10
10
deps: deps ( ) ,
Original file line number Diff line number Diff line change @@ -3722,7 +3722,7 @@ var react = React_1;
3722
3722
function mapToObject ( map ) {
3723
3723
const object = { } ;
3724
3724
3725
- for ( [ key , value ] of map . entries ( ) ) {
3725
+ for ( const [ key , value ] of map . entries ( ) ) {
3726
3726
if ( value instanceof Map ) {
3727
3727
object [ key ] = mapToObject ( value ) ;
3728
3728
} else {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import React from 'react';
3
3
function mapToObject ( map ) {
4
4
const object = { } ;
5
5
6
- for ( [ key , value ] of map . entries ( ) ) {
6
+ for ( const [ key , value ] of map . entries ( ) ) {
7
7
if ( value instanceof Map ) {
8
8
object [ key ] = mapToObject ( value ) ;
9
9
} else {
You can’t perform that action at this time.
0 commit comments