atsusy / TiPaperFold

Titanium Mobile module for "PaperFold for iOS"
MIT License
63 stars 21 forks source link

Super strange issue #6

Closed raulriera closed 12 years ago

raulriera commented 12 years ago

This may sound pretty insane, but have you ever tried using commonJS modules with this module? I have this scenario where everything is a commonJS module (which works great on a tabGroup app) changing the tab group for the paperFold seems to work well except everything in those modules that are inside a "function" never get's called, for example:

// calling the window outside of the paperFold (works)
require("/ui/Checkin");
var checkinWindow = new Checkin();
checkinWindow.open({ modal: true });

// calling that exact code from a view / window inside the paperFold will show the dialog alright but the functions inside won't work (network and GPS related functions)

I know this is IMPOSSIBLE to debug, just trying to figure out if this is something related to the module or my commonJS stuff, but as I said.. it works on a tabgroup app.

raulriera commented 12 years ago

Here are some examples of what I am refering :S (I know I am sounding like a complete madman here)

Here is the window being called from outside of paperFold

Window outside of the paperFold

Now, here is the same window when using a click event or something inside the paperFold

Window outside of the paperFold

raulriera commented 12 years ago

Ignore this issue please... it must be something else...