Comparing version 2.1.3 to 2.1.4
@@ -11,2 +11,4 @@ /** | ||
value: function(event_name, callback) { | ||
// Event name accepts name1#tag1,name2#tag1,name3#tag2 | ||
const inserted = []; | ||
const events = event_name.split(','); | ||
@@ -16,3 +18,5 @@ for( let evt_name of events ) { | ||
evt_name = evt_name.trim(); | ||
if ( inserted.indexOf(evt_name) >= 0 ) continue; | ||
inserted.push(evt_name); | ||
this.addEventListener(evt_name, callback); | ||
@@ -19,0 +23,0 @@ } |
{ | ||
"name": "extes", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "A tiny library that extends native js with some handy tools", | ||
@@ -5,0 +5,0 @@ "main": "index.mjs", |
34213
1164