So I'm working on making some changes to this old sencha touch app (upgrading is out of the question) and I'm stumbling upon the following issue. The system has "stops" around a "trail" which are around the museum I work at with more information on the exhibit available in the trail stop. Users have the opportunity to see physical locations and links related to each stop. The problem currently is that the details when a user clicks on a related place or link are not being generated. Here's what the code looks like:

Code:
trailsApp.views.goFurther_explore_detail = Ext.extend(Ext.Panel, {
        layout: 'fit',
        cls: 'go-further-explore detail',
        initComponent : function() {
                var nodeId = this.nodeId;
        var type = this.type;
            this.items = {
                xtype : 'dataview',
                tpl:
                '<tpl for=".">' +
                    '<tpl if="nodeId == ' + this.nodeId + '">' +
                        '<tpl if="type == &quot;Place&quot;">' +
                            '<div class="image"><img src="{image-360x238}" width="180" height="119"></div>' +
                            '<div class="title">{title}</div>' +
                            '<div class="body">{body}</div>' +
                            '<a href="{googleMapsLink}" target="_blank" class="link">View in Google Maps</a>' +
                            '<tpl if="visitLink">' +
                                '<a href="{visitLink}" target="_blank" class="link">Plan Your Visit</a>' +
                            '</tpl>' +
                        '</tpl>' +
                        '<tpl if="type == &quot;Trail Resource&quot;">' +
                            '<tpl if="resourceType == &quot;file&quot;">' +
                                '<div class="wrapper">' +
                                    '<div class="title">{title}</div>' +
                                    '<div class="body">{body}</div>' +
                                    '<a href="{file}" target="_blank" class="link">Open File</a>' +
                                '</div>' +
                            '</tpl>' +
                            '<tpl if="resourceType == &quot;link&quot;">' +
                                '<div class="wrapper">' +
                                    '<div class="title">{title}</div>' +
                                    '<div class="body">{body}</div>' +
                                    '<a href="{linkUrl}" target="_blank" class="link">{linkTitle}</a>' +
                                '</div>' +
                            '</tpl>' +
                        '</tpl>' +
                    '</tpl>' +
                '</tpl>',
                itemSelector : 'none',
                store: trailsApp.stores.goFurther_explore
        };
And here's the code that's setting the this.type variable in the controller:

Code:
    explore_detailPage : function(arg) {
        var nodeIdTemp = arg.nodeId;
        var typeTemp = arg.type;
        trailsApp.views.viewport.removeAll();
        trailsApp.views.viewport.add({
            xtype : 'goFurther_explore_detail',
            nodeId : nodeIdTemp,
            type : typeTemp
        });
        trailsApp.views.viewport.doLayout()
    }
Just for grins, here's the model as well:

Code:
trailsApp.models.goFurther_explore = Ext.regModel("goFurther_explore", {
    proxy: {
        type: 'ajax',
        url: '../?q=feed-explore',
        reader: {
            type: 'json',
            root: 'nodes'
        }
    },
    fields: [
        
        {name: "nodeId", type: "int", mapping: "node.nodeid"},
        {name: "resourceType", type: "string", mapping: "node.resourcetype"},
        {name: "title", type: "string", mapping: "node.title"},
        {name: "image-100x100", type: "string", mapping: "node.image100x100"},
        {name: "relatedStopNumber", type: "string", mapping: "node.relatedstop"},
        {name: "image-360x238", type: "string", mapping: "node.image360x238"},
        {name: "relatedStopNumber", type: "string", mapping: "node.relatedstop"},
        {name: "file", type: "string", mapping: "node.file"},
        {name: "image-360x360", type: "string", mapping: "node.image360x360"},
        {name: "subject", type: "string", mapping: "node.subject"},
        {name: "linkTitle", type: "string", mapping: "node.linktitle"},
        {name: "observatory", type: "string", mapping: "node.observatory"},
        {name: "displayTitle", type: "string", mapping: "node.displaytitle"},
        {name: "body", type: "string", mapping: "node.body"},
        {name: "linkUrl", type: "string", mapping: "node.linkurl"},
        {name: "type", type: "string", mapping: "node.type"},
        {name: "bodyTrimmed", type: "string", mapping: "node.bodytrimmed"},
        {name: "googleMapsLink", type: "string", mapping: "node.googlemapslink"},
        {name: "visitLink", type: "string", mapping: "node.visitlink"},
        {name: "contentType", type: "string", mapping: "node.contenttype"},
        {name: "exploreCopy", type: "string", mapping: "node.explorecopy"}
    ]
});


trailsApp.stores.goFurther_explore = new Ext.data.Store({
    model: 'goFurther_explore',
    autoLoad : true
});


trailsApp.stores.goFurther_explore.getField = function(nodeId, fieldName) {
    var fieldValue;
    trailsApp.stores.goFurther_explore.each(function() {
        if(this.get('nodeId') == nodeId){
            fieldValue = this.get(fieldName);
        }
    });
    return fieldValue;
}


I've checked to make sure that the nodeType variable is getting set correctly and I've tested that under correct conditions nodeType == "Place" is resulting in true and false at the correct times. Everything will generate if I get rid of the checks for nodeType, so I'm at a loss as to why the check is failing.