Skip to content

Commit 76ed6ef

Browse files
committed
Update to ElixirScript master. Remove warnings
1 parent e16b088 commit 76ed6ef

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/react.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
defmodule React do
22
use ElixirScript.FFI
33

4-
foreign createElement(type, props, children)
4+
defexternal createElement(type, props, children)
55
end

lib/react_dom.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
defmodule ReactDOM do
22
use ElixirScript.FFI
33

4-
foreign render(element, container)
4+
defexternal render(element, container)
55
end

lib/reactui.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule ReactUI do
99
@external_resource tags_path = Path.join([__DIR__, "tags.txt"])
1010

1111
@tags (for line <- File.stream!(tags_path, [], :line) do
12-
line |> String.strip |> String.to_atom
12+
line |> String.trim |> String.to_atom
1313
end)
1414

1515
for tag <- @tags do
@@ -28,7 +28,7 @@ defmodule ReactUI do
2828
defmacro unquote(tag)(attrs \\ []) do
2929
tag = Atom.to_string(unquote(tag))
3030

31-
{ inner, attributes } = Dict.pop(attrs, :do)
31+
{ inner, attributes } = Keyword.pop(attrs, :do)
3232
{ inner, attributes } = do_tag(inner, attributes)
3333

3434
quote do

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defmodule ElixirScriptReact.Mixfile do
1919

2020
defp deps do
2121
[
22-
{:elixir_script, git: "[email protected]:elixirscript/elixirscript.git", ref: "72b8adea911569667901ed9d38a0a52ddaa8fc0f"},
22+
{:elixir_script, git: "[email protected]:elixirscript/elixirscript.git"},
2323
]
2424
end
2525
end

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
%{"elixir_script": {:git, "[email protected]:elixirscript/elixirscript.git", "72b8adea911569667901ed9d38a0a52ddaa8fc0f", [ref: "72b8adea911569667901ed9d38a0a52ddaa8fc0f"]},
1+
%{"elixir_script": {:git, "[email protected]:elixirscript/elixirscript.git", "4666746253c8d4d5affa61c66f3878bdd9cb6425", []},
22
"estree": {:hex, :estree, "2.6.0", "86a301b0c355fa55c19e7ef9dceb1b1e983c6df526a2b7846818a38c258fc3fb", [], [], "hexpm"},
33
"fs": {:hex, :fs, "3.4.0", "6d18575c250b415b3cad559e6f97a4c822516c7bc2c10bfbb2493a8f230f5132", [], [], "hexpm"}}

0 commit comments

Comments
 (0)