synthetic.js revision fa0dc2eee6aa0bb2be0232d98b593a4432a47c1a
toArray = Y.Array,
noop = function () {};
this.emitFacade = emitFacade;
}
event = e,
mix;
if (this.emitFacade) {
if (!e || !e.preventDefault) {
}
if (mix) {
} else {
}
if (this.delegate) {
}
}
};
function SyntheticEvent() {
}
_init: function () {
if (!this.publishConfig) {
this.publishConfig = {};
}
this.publishConfig.emitFacade :
true;
},
/**
* <p>Implement this function if the event supports a different subscription
* signature. This function is used by both on() and delegate(). The
* second parameter indicates that the event is being subscribed via
* delegate().</p>
*
* <p>Implementations must remove extra arguments from the args list before
* returning. The required args list order for on() subscriptions is</p>
*
* <pre><code>(type, callback, target, thisObj, argN...)</code></pre>
*
* <p>The required args list order for delegate() subscriptions is</p>
*
* <pre><code>(type, callback, target, filter, thisObj, argN...)</code></pre>
*
* <p>The return value from this function will be stored on the subscription
* in the '_extra' property for reference elsewhere.</p>
*
* @method processArgs
* @param args {Array} the parmeters passed to Y.on(..) or Y.delegate(..)
* @param delegate {Boolean} true if the originating subscription is from
* Y.delegate.
* @return {any}
*/
//allowDups : false,
if (delegate) {
}
if (!ce) {
}
capture : false,
notifiers: [],
};
}
return handle;
},
var handles = [],
}, selector);
return handle;
}
// (type, fn, el, thisObj, ...) => (fn, thisObj, ...)
}, this);
handles[0] :
new Y.EventHandle(handles);
},
/*
isDup: function (subs, fn, context) {
var id, sub;
for (id in subs) {
if (subs.hasOwnProperty(id)) {
sub = subs[id];
if ((!fn || sub.fn === fn) &&
(!context || sub.context === context)) {
return true;
}
}
}
return false;
},
*/
// (type, fn, el, context, filter?) => (fn, context, filter?)
if (ce) {
}
}
}
}, this);
},
notifier.subscribers = {};
} else {
}
}
},
_purge: function () {
while (--i >= 0) {
}
},
// Default detach cares only about the callback matching
},
}, el);
}
// (type, fn, el, filter, thisObj, ...) => (fn, thisObj, ...)
}
// Return an empty event handle to keep Y.on from falling back to
// a custom event subscription.
return handle || new Y.EventHandle();
},
// Called from custom events for delegate subscribers
_delegateContextFn: function () {
return this.currentTarget;
}
};
if (!config) {
config = {};
}
type :
Impl = function () {
};
on: function () {
},
detach: function () {
},
delegate: function () {
}
};
}
};