Ubuntu Pastebin

Paste from ahayzen at Thu, 27 Aug 2015 20:41:16 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
        function push(page, properties) {
            var pageComponent = Qt.createComponent(page);
            var pageIncubator = pageComponent.incubateObject(mainPageLayout, properties);
            var currentPage = primaryPage;

            if (pageIncubator.status != Component.Ready) {
                pageIncubator.onStatusChanged = function(status) {
                    if (status == Component.Ready) {
                        addPageToNextColumn(currentPage, pageIncubator);
                    }
                }
            } else {
                addPageToNextColumn(currentPage, pageIncubator);
            }

        }
Download as text