mirror of
https://github.com/flynx/types.js.git
synced 2025-12-19 18:01:39 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6bd22245e0
commit
5c518593b7
5
event.js
5
event.js
@ -196,11 +196,11 @@ function(name, func, options={}){
|
||||
|
||||
// XXX might be nice to add support to pre/post handlers...
|
||||
// XXX still not sure about the builtin-local event control flow...
|
||||
// XXX do we need to be able to force global handler???
|
||||
var EventHandlerMixin =
|
||||
module.EventHandlerMixin = {
|
||||
__event_handlers__: null,
|
||||
|
||||
// XXX do we need to be able to force global handler???
|
||||
on: function(evt, func){
|
||||
// event...
|
||||
if(evt in this
|
||||
@ -237,7 +237,6 @@ module.EventHandlerMixin = {
|
||||
return h !== func
|
||||
&& h.__event_original_handler__ !== func })) }
|
||||
return this },
|
||||
// XXX add support for stopping handler execution...
|
||||
trigger: function(evt, ...args){
|
||||
// local handler...
|
||||
evt in this
|
||||
@ -271,7 +270,7 @@ module.EventDocMixin = {
|
||||
|
||||
var EventMixin =
|
||||
module.EventMixin =
|
||||
object.mixinFlat(
|
||||
object.mixinFlat({},
|
||||
EventHandlerMixin,
|
||||
EventDocMixin)
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-types",
|
||||
"version": "3.6.1",
|
||||
"version": "3.6.2",
|
||||
"description": "Generic JavaScript types and type extensions...",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user