Skip to content

Commit 49d0024

Browse files
committed
Fix error in mapToObject
1 parent 39123d9 commit 49d0024

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and 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`

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(),

priv/elixir_script/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3722,7 +3722,7 @@ var react = React_1;
37223722
function 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 {

src/react.index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
function 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 {

0 commit comments

Comments
 (0)