From 64f656ffcff8436873556bb9ec36698718ffe82a Mon Sep 17 00:00:00 2001 From: m7r Date: Fri, 19 Jul 2013 16:07:05 +0200 Subject: [PATCH] fix(task): make backward compatible to 0.1.0 --- tasks/grunt-ngdocs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/grunt-ngdocs.js b/tasks/grunt-ngdocs.js index a1de8f9..df7c38f 100644 --- a/tasks/grunt-ngdocs.js +++ b/tasks/grunt-ngdocs.js @@ -114,6 +114,7 @@ module.exports = function(grunt) { data = grunt.file.read(file), vm.runInNewContext(data, context, file); setup = context.NG_DOCS; + setup.apis = setup.apis || {}; // make backward compatible to 0.1.1, remove in 0.2.0 // keep only pages from other build tasks setup.pages = _.filter(setup.pages, function(p) {return p.section !== section;}); } else {