Skip to content

Commit 18d9d9c

Browse files
committed
Drawers: added support for StackScreenNavigator
1 parent 983efd4 commit 18d9d9c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

source/feathers/controls/Drawers.as

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ accordance with the terms of the accompanying license agreement.
77
*/
88
package feathers.controls
99
{
10+
import feathers.controls.supportClasses.BaseScreenNavigator;
1011
import feathers.core.FeathersControl;
1112
import feathers.core.IValidating;
1213
import feathers.events.ExclusiveTouch;
@@ -148,7 +149,7 @@ package feathers.controls
148149
* left of the main content:</p>
149150
*
150151
* <listing version="3.0">
151-
* var navigator:ScreenNavigator = new ScreenNavigator();
152+
* var navigator:StackScreenNavigator = new StackScreenNavigator();
152153
* var list:List = new List();
153154
* // the navigator's screens, the list's data provider, and additional
154155
* // properties should be set here.
@@ -159,7 +160,7 @@ package feathers.controls
159160
* drawers.leftDrawerToggleEventType = Event.OPEN;
160161
* this.addChild( drawers );</listing>
161162
*
162-
* <p>In the example above, a screen in the <code>ScreenNavigator</code>
163+
* <p>In the example above, a screen in the <code>StackScreenNavigator</code>
163164
* component dispatches an event of type <code>Event.OPEN</code> when it
164165
* wants to display the slide out the <code>List</code> that is used as
165166
* the left drawer.</p>
@@ -405,7 +406,7 @@ package feathers.controls
405406
this._content = value;
406407
if(this._content)
407408
{
408-
if(this._content is ScreenNavigator)
409+
if(this._content is BaseScreenNavigator)
409410
{
410411
this.contentEventDispatcherField = SCREEN_NAVIGATOR_CONTENT_EVENT_DISPATCHER_FIELD;
411412
this.contentEventDispatcherChangeEventType = Event.CHANGE;
@@ -1571,8 +1572,9 @@ package feathers.controls
15711572
* <code>contentEventDispatcherField</code> or
15721573
* <code>contentEventDispatcherFunction</code>.
15731574
*
1574-
* <p>For a <code>ScreenNavigator</code> component, this value is
1575-
* automatically set to <code>Event.CHANGE</code>.</p>
1575+
* <p>For <code>StackScreenNavigator</code> and
1576+
* <code>ScreenNavigator</code> components, this value is automatically
1577+
* set to <code>Event.CHANGE</code>.</p>
15761578
*
15771579
* <p>In the following example, the drawers container will update its
15781580
* content event dispatcher when the content dispatches an event of type
@@ -1620,9 +1622,10 @@ package feathers.controls
16201622
* A property of the <code>content</code> that references an event
16211623
* dispatcher that dispatches events to toggle drawers open and closed.
16221624
*
1623-
* <p>For a <code>ScreenNavigator</code> component, this value is
1624-
* automatically set to <code>"activeScreen"</code> to listen for events
1625-
* from the currently active/visible screen.</p>
1625+
* <p>For <code>StackScreenNavigator</code> and
1626+
* <code>ScreenNavigator</code> components, this value is automatically
1627+
* set to <code>"activeScreen"</code> to listen for events from the
1628+
* currently active/visible screen.</p>
16261629
*
16271630
* <p>In the following example, the content event dispatcher field is
16281631
* customized:</p>

0 commit comments

Comments
 (0)