Skip to content

Commit

Permalink
More comment cleanup. Enyo-DCO-1.1-Signed-Off-By: Jim Tang (jim.tang@…
Browse files Browse the repository at this point in the history
…lge.com)
  • Loading branch information
Jim Tang committed Mar 26, 2013
1 parent acb1704 commit 057491e
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 110 deletions.
30 changes: 15 additions & 15 deletions source/kernel/mixins/MultipleDispatchSupport.js
Original file line number Original file line Diff line number Diff line change
@@ -1,11 +1,11 @@
//*@public //*@public
/** /**
Allow a single object to dispatch its events to multiple registered Allows a single object to dispatch its events to multiple registered
listeners. Note that events generated by the object will be dispatched listeners. Note that events generated by the object will be dispatched
to all listeners but events bubbled/dispatched the object will only to all listeners, but events bubbled or dispatched to the object will
be propagated if the object has an _owner_. The _owner_ property can only be propagated if the object has an _owner_. While the _owner_
be set at any time, however, if a _view_ initializes a new instance of property may be set at any time, if a view initializes a new instance
the kind its _owner_ will automatically be set. of the kind, its _owner_ will automatically be set.
*/ */
enyo.createMixin({ enyo.createMixin({


Expand All @@ -27,7 +27,7 @@ enyo.createMixin({
//*@protected //*@protected
/** /**
A boolean flag used internally to communicate how to A boolean flag used internally to communicate how to
handle requests to bubble events. handle requests to bubble events
*/ */
_default_dispatch: false, _default_dispatch: false,


Expand All @@ -44,11 +44,11 @@ enyo.createMixin({


//*@protected //*@protected
/** /**
Overload the bubble target. Overloads the bubble target.
*/ */
bubbleTarget: enyo.computed(function () { bubbleTarget: enyo.computed(function () {
// if we have a valid dispatch target and default dispatching enabled // if we have a valid dispatch target and default dispatching enabled,
// we go head and return that object otherwise nothing so it will // we go head and return that object; otherwise, nothing, so it will
// not propagate an event // not propagate an event
if (this._default_target && this._default_dispatch) return this._default_target; if (this._default_target && this._default_dispatch) return this._default_target;
}, "_default_target", "_default_dispatch", {cached: true}), }, "_default_target", "_default_dispatch", {cached: true}),
Expand All @@ -58,8 +58,8 @@ enyo.createMixin({


//*@public //*@public
/** /**
Accepts an instance of any _enyo.Component_ or subkind that Sets as dispatch target an instance of _enyo.Component_ or a subkind
supports the event API. that supports the event API.
*/ */
addDispatchTarget: function (target) { addDispatchTarget: function (target) {
var $dist = this._dispatch_targets; var $dist = this._dispatch_targets;
Expand All @@ -74,9 +74,9 @@ enyo.createMixin({


//*@public //*@public
/** /**
Accepts an instance of a registered listener on this object Accepts an instance of a registered listener on this object as a
and will remove it from active dispatch targets if it is parameter; if the passed-in listener is present the active dispatch
present. targets, it is then removed.
*/ */
removeDispatchTarget: function (target) { removeDispatchTarget: function (target) {
var $dist = this._dispatch_targets; var $dist = this._dispatch_targets;
Expand All @@ -89,7 +89,7 @@ enyo.createMixin({


//*@protected //*@protected
/** /**
When the _owner_ changes we have to check our state to make When the _owner_ changes, we have to check our state to make
sure we are still appropriately set. sure we are still appropriately set.
*/ */
ownerChanged: function () { ownerChanged: function () {
Expand Down
Loading

0 comments on commit 057491e

Please sign in to comment.