customevent.html revision 80d2034f65b9348e5fd36291f03b0819181efb89
0N/A button.set("disabled", false);
392N/A var testEventTarget = new Y.Test.Case({
392N/A name: "Event.Target tests",
0N/A O.prototype = {
0N/A // pass configuration info into Event.Target with the following
202N/A Y.Assert.isTrue(this instanceof O);
0N/A Y.Assert.isTrue(arg1 === 1);
0N/A Y.Assert.isTrue(arg2 === 2);
889N/A Y.Assert.isTrue(fired);
889N/A arguments.callee.superclass.constructor.apply(this, arguments);
972N/A Y.Assert.isTrue(this instanceof Base);
972N/A Y.Assert.isTrue(arg1 === 1);
0N/A Y.Assert.isTrue(arg2 === 2);
0N/A Y.Assert.isTrue(fired);
0N/A O.prototype = {
972N/A // pass configuration info into Event.Target with the following
o.on('testPrefix', function(e, arg1, arg2) {
Y.Assert.isTrue(this instanceof O);
o.on('prefix:testPrefix', function(e, arg1, arg2) {
Y.Assert.isTrue(this instanceof O);
o.fire('testPrefix', { foo: 'afoo' }, 1, 2);
Y.Assert.isTrue(fired1);
// Y.Assert.isTrue(fired2);
o.fire('prefix:testPrefix', { foo: 'afoo' }, 1, 2);
Y.Assert.isTrue(fired1);
Y.Assert.isTrue(fired2);
Y.Test.Runner.add(testEventTarget);