lib/assets/javascripts/unpoly/element.coffee.erb in unpoly-rails-0.60.0 vs lib/assets/javascripts/unpoly/element.coffee.erb in unpoly-rails-0.60.1
- old
+ new
@@ -664,13 +664,13 @@
###**
Creates an element from the given HTML fragment.
\#\#\# Example
- element = up.element.createFromHtml('<div class="foo"><span>text</span></div>')
- element.className // returns 'foo'
- element.children[0] // returns <span> element
- element.children[0].textContent // returns 'text'
+ element = up.element.createFromHtml('<div class="foo"><span>text</span></div>')
+ element.className // returns 'foo'
+ element.children[0] // returns <span> element
+ element.children[0].textContent // returns 'text'
@function up.element.createFromHtml
@experimental
###
createFromHtml = (html) ->