Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return;
// trace only update and delete
var ext = basis.path.extname(filename);
if (inspectBasisResource.extensions[ext] &&
inspectBasisResource.extensions[ext].permanent &&
inspectBasisResource.isResolved(filename) &&
inspectBasisResource(filename).hasChanges())
basis.array.add(permanentFiles, filename);
else
basis.array.remove(permanentFiles, filename);
});
// set new count
File.permanentChangedCount.set(permanentFiles.length);
Dataset.setAccumulateState(false);
}
template: resource('./template/panel.tmpl'),
binding: {
activated: 'activated',
themeName: inspectBasisTemplate.theme,
themeList: themeList,
cultureName: inspectBasisL10n.culture,
cultureList: cultureList,
isOnline: isOnline,
remote: new Expression(remoteInspectors, devtools, function(inspectors, devtool){
if (inspectors && devtool)
return 'remote-and-devtool';
if (inspectors || devtool)
return inspectors ? 'remote' : 'devtool';
}),
permanentFilesChangedCount: File.permanentChangedCount,
inspectMode: inspectMode,
inspector: currentInspectorName,
grid: function(){
var config = inspectBasis.config.devpanel;
return Number(config && config.grid) || 0;
}
},
action: {
showThemes: function(){
inspectMode.set();
themeList.setDelegate(this);
},
showCultures: function(){
inspectMode.set();
cultureList.setDelegate(this);