electrum-events
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -31,4 +31,4 @@ 'use strict'; | ||
} | ||
this._valueGetter = valueGetter || function (t) { | ||
return t.value; | ||
this._valueGetter = valueGetter || function (target) { | ||
return target.value; | ||
}; | ||
@@ -138,4 +138,4 @@ } | ||
value: function inject(obj, props, bus) { | ||
var eh = new EventHandlers(props, bus, obj.getValue && function (e) { | ||
return obj.getValue(e.target); | ||
var eh = new EventHandlers(props, bus, obj.getValue && function (target) { | ||
return obj.getValue(target); | ||
}); | ||
@@ -142,0 +142,0 @@ /* jshint expr: true */ |
{ | ||
"name": "electrum-events", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Electrum Events forwards web component events to the bus.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -15,3 +15,3 @@ 'use strict'; | ||
} | ||
this._valueGetter = valueGetter || (t => t.value); | ||
this._valueGetter = valueGetter || (target => target.value); | ||
} | ||
@@ -56,3 +56,3 @@ | ||
static inject (obj, props, bus) { | ||
const eh = new EventHandlers (props, bus, obj.getValue && (e => obj.getValue (e.target))); | ||
const eh = new EventHandlers (props, bus, obj.getValue && (target => obj.getValue (target))); | ||
/* jshint expr: true */ | ||
@@ -59,0 +59,0 @@ const existingOnFocus = obj.onFocus; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20730