From 92d1fc5759ab91108b96ee2502c14ecc14689ff3 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 21 Jul 2017 23:55:15 +0700 Subject: [PATCH] Comment out events listener --- views/article.ejs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/views/article.ejs b/views/article.ejs index fe449dfc5..f1a7ba5d9 100644 --- a/views/article.ejs +++ b/views/article.ejs @@ -30,11 +30,17 @@ asset_url: '<%= asset_url ? asset_url : '' %>', asset_id: '<%= asset_id ? asset_id : '' %>', auth_token: '', - events: function(events) { - events.onAny(function(eventName, data) { - console.log(eventName, data); - }); - }, + /** + * You can listen to events using the example below. + * The argument passed is the event emitter from + * https://github.com/asyncly/EventEmitter2 + * + * events: function(events) { + * events.onAny(function(eventName, data) { + * console.log(eventName, data); + * }); + * }, + */ plugin_config: { /** * You can disable rendering slot components of a plugin by doing: