1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix input event

This commit is contained in:
Luke Pulverenti 2016-06-05 00:49:29 -04:00
parent b33a3302ed
commit 4c99143f26
3 changed files with 21 additions and 16 deletions

View file

@ -8,16 +8,18 @@
var descriptor = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value');
var baseSetMethod = descriptor.set;
descriptor.set = function (value) {
baseSetMethod.call(this, value);
this.dispatchEvent(new CustomEvent('valueset', {
bubbles: false,
cancelable: false
}));
}
if (descriptor.configurable) {
var baseSetMethod = descriptor.set;
descriptor.set = function (value) {
baseSetMethod.call(this, value);
this.dispatchEvent(new CustomEvent('valueset', {
bubbles: false,
cancelable: false
}));
}
Object.defineProperty(HTMLInputElement.prototype, 'value', descriptor);
Object.defineProperty(HTMLInputElement.prototype, 'value', descriptor);
}
}
EmbyInputPrototype.createdCallback = function () {