Permalink
Browse files

Use underscore bind for compat

  • Loading branch information...
josh committed Dec 18, 2010
1 parent b4a26db commit 62ae6f5a048d246ccae7a06adda1213a2366374b
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/stitch.js
  2. +2 −2 src/stitch.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -28,7 +28,7 @@ exports.Package = class Package
@compileCache = {}
compile: (callback) ->
async.reduce @paths, {}, @gatherSourcesFromPath.bind(@), (err, sources) =>
async.reduce @paths, {}, _.bind(@gatherSourcesFromPath, @), (err, sources) =>
return callback err if err
result = """
@@ -83,7 +83,7 @@ exports.Package = class Package
if stat.isDirectory()
@getFilesInTree sourcePath, (err, paths) =>
return callback err if err
async.reduce paths, sources, @gatherCompilableSource.bind(@), callback
async.reduce paths, sources, _.bind(@gatherCompilableSource, @), callback
else
@gatherCompilableSource sources, sourcePath, callback

0 comments on commit 62ae6f5

Please sign in to comment.