Skip to content

Commit

Permalink
Fixed html() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvrzna committed May 5, 2020
1 parent 94f7dd5 commit 1fb8fa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nunjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ window.$ = function(selector) {
},
html: function(content) {
if (content === undefined) {
return this.innerHTML;
return this[0].innerHTML;
}
this.each(function() {
this.innerHTML = content;
Expand Down
2 changes: 1 addition & 1 deletion nunjs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1fb8fa4

Please sign in to comment.