Skip to content

Instantly share code, notes, and snippets.

View vrennert's full-sized avatar

Viktor Rennert vrennert

View GitHub Profile
@vrennert
vrennert / gist:1079076
Created July 12, 2011 21:56
Y.Base.create
YUI.add('mtc', function(Y) {
var Lang = Y.Lang;
Y.MTC = Y.Base.create("mtc", Y.Plugin.Base, [], {
NS: 'mtc',
NAME: 'mtc',
initializer : function(config) {
this.onHostEvent("render", this._onHostRenderEvent);
@vrennert
vrennert / gist:1069921
Created July 7, 2011 16:35
Tabview publish
var platformTab = new Y.TabView({srcNode:'#platformTab'});
platformTab.publish('selectionChange', { broadcast: 1 });
platformTab.render();
Y.Global.on('tabView:selectionChange', function() {
console.log('Y.Global.on');
});
Y.on('tabView:selectionChange', function() {