Permalink
Browse files

eating my own dog food; using my mini-async lib.

  • Loading branch information...
1 parent 73f663b commit 387cb123e410faf79e7dcc6ea1832235f8432fdf @mikesmullin committed Dec 3, 2012
Showing with 10 additions and 10 deletions.
  1. +4 −4 lib/stylus-lemonade.js
  2. +2 −2 package.json
  3. +4 −4 src/stylus-lemonade.coffee
Oops, something went wrong.
View
@@ -23,9 +23,9 @@
],
"dependencies": {
"node-gd": ">= 0.1.8",
- "async": "~0.1.22",
"crypto": "0.0.3",
- "node-glob": "git://github.com/isaacs/node-glob.git"
+ "node-glob": "git://github.com/isaacs/node-glob.git",
+ "mini-async": ">= 0.0.1"
},
"devDependencies": {
"stylus": "https://github.com/mikesmullin/stylus/tarball/master",
@@ -26,7 +26,7 @@
###
gd = require 'node-gd'
-async = require 'async'
+async = require 'mini-async'
fs = require 'fs'
#pathlib = require 'path'
#exec = require('child_process').exec
@@ -123,7 +123,7 @@ class Lemonade
# event emitted by stylus.render()
stylus_instance.on 'end', (css, callback) =>
- async.series @series, (err) =>
+ async.series @series, (next, err) =>
return callback err, css if err
# replace placeholders in css
@@ -146,7 +146,7 @@ class Lemonade
series = []
for own sprite_key, sprite of @sprites
((sprite) -> series.push (next) -> sprite.render next)(sprite)
- async.series series, (err) =>
+ async.series series, (next, err) =>
# complete stylus rendering
callback null, css
@@ -260,7 +260,7 @@ class Sprite
next()
return
return)(sprite.images[key])
- async.series series, (err) ->
+ async.series series, (next, err) ->
callback err if err
# delete old sprites off disk

0 comments on commit 387cb12

Please sign in to comment.