Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMEventTarget.dispatchEvent]
- Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMEventTarget.dispatchEvent]
- this.dispatchEvent(new SWFAddressEvent(type));
- _dispatch = function(type) {
- this.dispatchEvent(new SWFAddressEvent(type));
- type = type.substr(0, 1).toUpperCase() + type.substr(1);
- if(typeof this['on' + type] == FUNCTION)
- this['on' + type]();
- },
- this.dispatchEvent = function(event) {
- console.log(event);
- if (this.hasEventListener(event.type)) {
- console.log(event);
- event.target = this;
- for (var i = 0, l; l = _listeners[event.type][i]; i++)
- l(event);
- return TRUE;
- }
- return FALSE;
- };
Add Comment
Please, Sign In to add comment