mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
16 lines
403 B
JavaScript
16 lines
403 B
JavaScript
(function(g) {
|
|
'use strict';
|
|
|
|
g.trapIdentityEvents = function(target) {
|
|
var state = {};
|
|
var identityEvents = ['idpassertionerror', 'idpvalidationerror',
|
|
'identityresult', 'peeridentity'];
|
|
identityEvents.forEach(function(name) {
|
|
target.addEventListener(name, function(e) {
|
|
state[name] = e;
|
|
}, false);
|
|
});
|
|
return state;
|
|
};
|
|
}(this));
|