Skip to content

Commit

Permalink
change master back to being a Component so the resize waterfall is se…
Browse files Browse the repository at this point in the history
…nt to it's subcomponents
  • Loading branch information
Scott Miles committed Feb 21, 2012
1 parent 94c7aa7 commit 7515dd7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/kernel/UiComponent.js
Expand Up @@ -225,17 +225,21 @@ enyo.createFromKind = function(inKind, inParam) {
//
// NOTE: ownerless UiComponents will not GC unless explicity destroyed as they will be referenced by enyo.master.
//
enyo.master = new enyo.UiComponent({
enyo.master = new enyo.Component({
name: "master",
/*
notInstanceOwner: true,
getId: function() {
return '';
},
*/
bubble: function(inEventName, inEvent, inSender) {
//console.log("master event: " + inEventName);
if (inEventName == "onresize") {
// resize is special, waterfall this message
enyo.master.waterfall("onresize");
// this works because master is a Component, so it' waterfalls
// to it's owned Components (i.e. master has no children)
enyo.master.waterfallDown("onresize");
} else {
// all other top level events are sent only to interested Signal receivers
enyo.Signals.send(inEventName, inEvent);
Expand Down

0 comments on commit 7515dd7

Please sign in to comment.