blob: 525246e6ade1dc73dec6e4e51d537eb17407f0a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
Object.defineProperty(global.HTMLImageElement.prototype, 'src', {
get() {
return this.$_jest_src;
},
set(val) {
this.$_jest_src = val;
if (this.onload) {
this.onload();
}
},
});
|