Skip to content

Instantly share code, notes, and snippets.

@lsmith
Forked from apipkin/gist:400086
Created May 14, 2010 15:58
Show Gist options
  • Save lsmith/401327 to your computer and use it in GitHub Desktop.
Save lsmith/401327 to your computer and use it in GitHub Desktop.
YUI.add('example',function(Y){
var Example= function(){
Example.superclass.constructor.apply(this,arguments);
};
Y.extend(Example, Y.Overlay,{
/* proto */
},{
NAME : 'example',
ATTRS : {
type : {
setter: function (val) {
this.get('boundingBox').replaceClass(
this.getClassName("type", this.get('type') || "default"),
this.getClassName("type", val || "default"));
return val;
}
}
}
});
Y.Example = Example;
},'0.1',{requires:['overlay']});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment