Skip to content

Commit

Permalink
Use underscore bind for compat
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Dec 18, 2010
1 parent b4a26db commit 62ae6f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/stitch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/stitch.coffee
Expand Up @@ -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 = """
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 62ae6f5

Please sign in to comment.