Skip to content

Commit

Permalink
fixing #582, issues with sidecar files
Browse files Browse the repository at this point in the history
  • Loading branch information
iliansap committed Jul 9, 2017
1 parent e5fb5b3 commit a9a9109
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions data/js/meta.js
Expand Up @@ -24,19 +24,17 @@ define(function(require, exports, module) {
var metaFilePath;
var metaFolderPath = TSCORE.TagUtils.extractParentDirectoryPath(filePath) + TSCORE.dirSeparator + TSCORE.metaFolder;
filePath = metaFolderPath + TSCORE.dirSeparator + TSCORE.TagUtils.extractFileName(filePath) + metaFileExtension;
TSCORE.metaFileList.every(function(element) {
TSCORE.metaFileList.map(function(element) {
if (filePath.indexOf(element.path) >= 0) {
metaFilePath = element.path;
return false;
}
return true;
});
return metaFilePath;
}

function findMetaObjectFromFileList(filePath) {
var metaObj = null;
TSCORE.fileList.every(function(element) {
TSCORE.fileList.map(function(element) {
if (element.path === filePath && element.meta) {
metaObj = element.meta;
}
Expand Down

0 comments on commit a9a9109

Please sign in to comment.