| Page 1 of 1 | [ 6 posts ] |
|
Hi everyone,
Where do I report bugs in the code samples found in the user guides? I think I might have found a bug in the EventTarget user guide: http://yuilibrary.com/yui/docs/event-cu ... -instances The code sample refers to Code: Y.Global.on('*:message', function (e) { if (e.origin !== id) { alert("message received from " + e.origin + ": " + e.message); } }); But it only worked for me when I removed the * prefix Code: Y.Global.on('message', function (e) { if (e.origin !== id) { alert("message received from " + e.origin + ": " + e.message); } }); In the following callback I believe e.originInstance should be e.origin. Also, this callback is never invoked so e.origin is never set with the unique ID. I'm not sure what the fix is for this. Code: // Stamp outgoing messages with this instance's id Y.on('message', function (e) { e.originInstance = id; }); Thanks. |
|
I am using FF 11 and have tried this sample code with YUI 3.4.1, 3.5 pr2 and pr4.
Thanks. |
|
|
|
Thanks Dav.
I created the following ticket for anyone interested. http://yuilibrary.com/projects/yui3/ticket/2531925 |
|
The user guide has been updated now. It all makes sense now
http://stage.yuilibrary.com/yui/docs/ev ... -instances |
|
Glad to help, and thanks for the report! Let us know if you see anything else awry.
|
| Page 1 of 1 | [ 6 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group