viezel / NappUI

A collection of extended functionality for the UI components of Titanium SDK
Other
121 stars 34 forks source link

popToRoot undefined is not a function #59

Open justin-nodeboy opened 8 years ago

justin-nodeboy commented 8 years ago

Hey Guys

Ay idea on how to get popToRoot working in an Alloy project? At the moment all I am getting from the code is

<NavigationWindow id="navWindowDetail">
            <Window id="root" class="window">
                    <Label id="lblMain" text="Please Select an item from the left menu" />
            </Window>
    </NavigationWindow>```

```javascript
$.navWindowDetail.popToRoot();

And then in the logs message = "undefined is not a function (evaluating '$.navWindowDetail.popToRoot()')";

I am adding a new window to the stack from a different controller, so I wanted this to fire first to remove any previous windows before adding a new one

nitrag commented 8 years ago

I'm wondering the same thing, did you fix this @justin-nodeboy ?

@viezel is this module alloy compatible?

nitrag commented 8 years ago

Ah, after adding this feature the module was not recompiled.