Permalink
Browse files

Bugfix: onclick handlers counted wrong

  • Loading branch information...
1 parent 9da30c7 commit 878dc23eea231b8b71251eadda612d7c59807a6d @tomimick committed Aug 6, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 maintab.js
View
@@ -392,7 +392,9 @@ function data_received(resp) {
item = resp.js[i];
add_item($("#jslist"), item);
- if (!item.src)
+ if (item.onclick)
+ onclickcount += 1;
+ else if (!item.src)
jsinline += 1;
update_li_text(item);
}

0 comments on commit 878dc23

Please sign in to comment.