Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
htmlwidgets 1.5.1.9000
-------------------------------------------------------

* Fixed an issue with passing named function declarations to `JS()` and `onRender()` (introduced by v1.4). (#356)

htmlwidgets 1.5.1
-------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions inst/www/htmlwidgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@
function tryEval(code) {
var result = null;
try {
result = eval(code);
result = eval("(" + code + ")");
} catch(error) {
if (!error instanceof SyntaxError) {
throw error;
}
try {
result = eval("(" + code + ")");
result = eval(code);
} catch(e) {
if (e instanceof SyntaxError) {
throw error;
Expand Down