From ba6d1509416213e47ff3a7d16b00f722d2e25279 Mon Sep 17 00:00:00 2001 From: surunzi Date: Tue, 6 Feb 2018 16:15:43 +0800 Subject: [PATCH] Dev: Small changes --- src/Snippets/Snippets.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Snippets/Snippets.js b/src/Snippets/Snippets.js index 7b6ceb6..d07461a 100644 --- a/src/Snippets/Snippets.js +++ b/src/Snippets/Snippets.js @@ -57,6 +57,8 @@ export default class Snippets extends Tool { if (snippets[i].name === name) this._run(i); } + + return this; } clear() { @@ -69,7 +71,7 @@ export default class Snippets extends Tool { let self = this; - this._$el.on('click', '.eruda-run', function I() + this._$el.on('click', '.eruda-run', function () { let idx = $(this).data('idx');