Skip to content

Commit

Permalink
dom/element: fix #id=
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Feb 2, 2014
1 parent 7fd893a commit 8144d58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opal/browser/dom/element.rb
Expand Up @@ -223,7 +223,9 @@ def id
}
end

alias_native :id=
def id=(value)
`#@native.id = #{value.to_s}`
end

def inner_dom(&block)
# FIXME: when block passing is fixed
Expand Down

0 comments on commit 8144d58

Please sign in to comment.