Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #2 from xbudex/master

Keep plugin working for grunt 0.3
  • Loading branch information...
commit a80bbe135ff0d66efc89cf75a888e30fe35ce279 2 parents 2314375 + 257538b
Eric Clemmons authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 tasks/livereload.js
4 tasks/livereload.js
@@ -44,6 +44,8 @@ module.exports = function(grunt) {
44 44 var config = grunt.config('livereload');
45 45 var files = grunt.file.expand(config.files);
46 46 var base = grunt.file.expand(config.options.base || '.')[0];
  47 + // utils was renamed to util with v0.4.0. Use fallback for backwards compatibility
  48 + var util = grunt.util || grunt.utils;
47 49
48 50 if (started) {
49 51 refresh();
@@ -51,7 +53,7 @@ module.exports = function(grunt) {
51 53 start();
52 54
53 55 gaze(files, function(err) {
54   - this.on('all', grunt.util._.debounce(function(event, filepath) {
  56 + this.on('all', util._.debounce(function(event, filepath) {
55 57 refresh(base, filepath);
56 58 }, 250));
57 59 });

0 comments on commit a80bbe1

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