var tswcalc = tswcalc || {};

tswcalc.import = function() {

    var start = function(vars) {
        for (var slotId in vars) {
            if (vars.hasOwnProperty(slotId)) {
                splitVars = vars[slotId].split(',');
                updateSlot(slotId, splitVars);
            }
        }
        tswcalc.summary.updateAllStats();
    };

    var updateSlot = function(slotId, values) {
        tswcalc.slots[slotId].ql('10.' + values[0]);
        tswcalc.slots[slotId].role(tswcalc.data.role_mapping.to_stat[values[1]]);
        tswcalc.slots[slotId].glyphQl('10.' + values[2]);
        tswcalc.slots[slotId].primaryGlyph(tswcalc.data.stat_mapping.to_stat[values[3]]);
        tswcalc.slots[slotId].secondaryGlyph(tswcalc.data.stat_mapping.to_stat[values[4]]);
        tswcalc.slots[slotId].el.btn.primary[values[5]].click();
        tswcalc.slots[slotId].el.btn.secondary[values[6]].click();
        // support signets
        if (typeof values[7] !== undefined && typeof values[8] !== undefined) {
            if (values[8] >= 80) {
                tswcalc.slots[slotId].el.btn.nyraid.prop('disabled', false);
                tswcalc.slots[slotId].el.btn.nyraid.prop('checked', true);
                tswcalc.slots[slotId].el.btn.nyraid.change();
            } else {
                if (!tswcalc.slots[slotId].isWeapon() && tswcalc.data.ny_raid_items[slotId][tswcalc.slots[slotId].role()] !== undefined) {
                    tswcalc.slots[slotId].el.btn.nyraid.prop('disabled', false);
                }
                tswcalc.slots[slotId].signetQuality(tswcalc.data.signet_quality_mapping.to_name[values[7]]);
                tswcalc.slots[slotId].signetId(values[8] != '0' ? values[8] : 'none');
                tswcalc.slots[slotId].el.signetId.change();
            }
        }
    };

    var oPublic = {
        start: start
    };

    return oPublic;
}();
@@ -954,24 +954,25 @@
 lues%5B7%5D !== 
+'
 undefined &&
@@ -968,16 +968,17 @@
 ndefined
+'
  && type
@@ -990,24 +990,25 @@
 lues%5B8%5D !== 
+'
 undefined) %7B
@@ -996,32 +996,33 @@
 %5D !== 'undefined
+'
 ) %7B%0A            
@@ -1755,43 +1755,213 @@
 Id%5D.
-el.signetId.change();%0A            %7D
+updateSignet();%0A            %7D%0A        %7D else %7B%0A            tswcalc.slots%5BslotId%5D.signetQuality('none');%0A            tswcalc.slots%5BslotId%5D.signetId('none');%0A            tswcalc.slots%5BslotId%5D.updateSignet();
 %0A   

Check on undefined string instead of type. Since typeof returns a string