Skip to content

Commit

Permalink
modal accepts only socket
Browse files Browse the repository at this point in the history
  • Loading branch information
grych committed Jul 15, 2018
1 parent 64b7f83 commit 3b27b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/drab/modal.ex
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ defmodule Drab.Modal do
@spec alert(Phoenix.Socket.t(), String.t(), String.t(), Keyword.t()) ::
Drab.Core.return() | no_return
@spec alert(Phoenix.Socket.t(), String.t(), String.t()) :: Drab.Core.return() | no_return
def alert(socket, title, body, options \\ []) do
def alert(%Phoenix.Socket{} = socket, title, body, options \\ []) do
buttons = options[:buttons] || [ok: "OK"]

bindings = [
Expand Down

0 comments on commit 3b27b35

Please sign in to comment.