Brian J. Miller![]()
Set of modules to be loaded in development environments to increase the noise level of YUI around certain common mistakes that should be detectable but aren't exception causing. For example plugging with a plugin that has not been loaded, or failing to pass an array as the third argument to Y.Base.create.
Please file an issue at github or in this forum if there is something that has annoyed you during YUI development.
YUI().use('gallery-devtools', function(Y) {
var obj = new Y.SomeObject ();
// results in a Y.error message
obj.plug(Y.NotLoaded);
var newClass = Y.Base.create(
"my-class",
Y.Base,
// results in a Y.error message
null,
{}, {}
);
});
© 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