Example #1
0
    getLevels : function() {
        var resolve = PATH.resolve.bind(PATH, this.root),
            buildLevel = this.getLevelPath(),
            getPlatformLevelsFn = 'get' + U.toUpperCaseFirst(this.getPlatform(buildLevel)) + 'Levels',
            levels = [];

        if(typeof this[getPlatformLevelsFn] === 'function') {
            Array.prototype.push.apply(levels, this[getPlatformLevelsFn].apply(this, arguments));
        }

        if(!levels.length) {
            return [];
        }

        return levels
            .map(function(path) { return resolve(path); })
            .concat(resolve(PATH.dirname(this.getNodePrefix()), 'blocks'));
    },