Skip to content
Browse files

Merge pull request #2 from xbudex/master

Keep plugin working for grunt 0.3
  • Loading branch information...
2 parents 2314375 + 257538b commit a80bbe135ff0d66efc89cf75a888e30fe35ce279 @ericclemmons committed Feb 9, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 tasks/livereload.js
View
4 tasks/livereload.js
@@ -44,14 +44,16 @@ module.exports = function(grunt) {
var config = grunt.config('livereload');
var files = grunt.file.expand(config.files);
var base = grunt.file.expand(config.options.base || '.')[0];
+ // utils was renamed to util with v0.4.0. Use fallback for backwards compatibility
+ var util = grunt.util || grunt.utils;
if (started) {
refresh();
} else {
start();
gaze(files, function(err) {
- this.on('all', grunt.util._.debounce(function(event, filepath) {
+ this.on('all', util._.debounce(function(event, filepath) {
refresh(base, filepath);
}, 250));
});

0 comments on commit a80bbe1

Please sign in to comment.
Something went wrong with that request. Please try again.