pkdevbox / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

iui.busy remains true after following non-iui fragments #355

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use iUI screens
2. Use other technique that makes use of URL #fragment
3. iUI view seen to be null but remains in busy state

What is the expected output? What do you see instead?
Expect view navigation to occur.

What version of the product are you using? On what operating system?
Safari, iOS

Please provide any additional information below.

We are using iUI in conjunction with ICEmobile-SX.  It is an external native 
app that makes use of the URL #fragment to return data to the web application 
(such as a scanned QR code value or a preview image from the camera. This is 
currently in development.)  I have not tested the following with general iUI 
use, but it fixes the incompatibility with ICEmobile-SX.  If the "intended 
view" is null (such as a #fragment that does not refer to a view within the 
page) then the attempted view change should be aborted.

            nodeId = view;
            node = $(nodeId);
        }
-       if (!node) log("gotoView: node is null");
+       if (!node) {
+           log("gotoView: node is null");
+           return false;
+       }
        if (!iui.busy)
        {
            iui.busy = true;

Original issue reported on code.google.com by ted.godd...@gmail.com on 9 Sep 2013 at 11:22