lib/static/ThemesWatcher.js
function generateIdFromFilePath(filePath) {
    var arr = filePath.split("/"), len = arr.length, last = arr[len - 1],
        secondLast = arr[len - 2], thirdLast = arr[len - 3];

    var isPluginFile = utils.contains(filePath, "/plugins/");
    return isPluginFile ? thirdLast + "/" + last : thirdLast + "/" + secondLast + "/" + last;
}
function generateIdFromFilePath(filePath) {
    var arr = filePath.split("/"), len = arr.length, last = arr[len - 1],
        secondLast = arr[len - 2], thirdLast = arr[len - 3];

    var isPluginFile = utils.contains(filePath, "/plugins/");
    return isPluginFile ? thirdLast + "/" + last : thirdLast + "/" + secondLast + "/" + last;
}
function generateIdFromFilePath ( filePath ) { var arr = filePath . split ( "/" ) , len = arr . length , last = arr [ len - 1 ] , secondLast = arr [ len - 2 ] , thirdLast = arr [ len - 3 ] ; var isPluginFile = utils . contains ( filePath , "/plugins/" ) ; return isPluginFile ? thirdLast + "/" + last : thirdLast + "/" + secondLast + "/" + last ; }
Returns unique id depends on file location i.e. a theme file or a plugin file
@param filePath
Returns unique id depends on file location i . e . a theme file or a plugin file