Skip to content

Commit

Permalink
Remove unnecessary JSON.stringify()s in AIM
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed May 14, 2017
1 parent f5f06e3 commit 8832aff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autoflagging/autoflagging.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
* `element` is a message (i.e. has the .message class)
*/
autoflagging.decorateMessage = function ($message, data) {
debug.decorate(JSON.stringify(data), $message);
debug.decorate(data, $message);

autoflagging.decorate($message.children(".ai-information"), data);
autoflagging.decorate($message.find(".meta .ai-information"), data);
Expand Down Expand Up @@ -537,8 +537,7 @@
var args = arguments;
q.forEach(function (f) {
setTimeout(function () {
debug.queue("Resolving queue: " + JSON.stringify(args));
debug(f);
debug.queue("Resolving queue:", f, args);
f.apply(self, args);
}, 100);
});
Expand Down

0 comments on commit 8832aff

Please sign in to comment.