Permalink
Browse files

support for options.fallback

  • Loading branch information...
1 parent ec9d312 commit eb637825995c1bf9b2f8df8c4a05390ee7a75fd8 Hsiaoming Yang committed Mar 22, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/sdk/grunt.js
View
@@ -125,6 +125,10 @@ grunt.loadGlobalTasks = function(name) {
};
grunt.invokeTask = function(name, options, fn) {
+ if (!fn && options.fallback) {
+ fn = options.fallback;
+ delete options.fallback;
+ }
grunt.option.init(options);
getGruntfiles(function(files) {

0 comments on commit eb63782

Please sign in to comment.