Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(task): make backward compatible to 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Jul 19, 2013
1 parent d7729d0 commit 64f656f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/grunt-ngdocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 64f656f

Please sign in to comment.