Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Use "extends" rather than "<<<<" for inheritance.

  (As suggested by @gkz ++)
  • Loading branch information...
commit 5b11b5bd5ce3bef518c9e66069868d73d229bf00 1 parent 0aa0be1
唐鳳 authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/q-jscex.ls
4 src/q-jscex.ls
View
@@ -8,7 +8,7 @@ else
Jscex ?= @Jscex ? throw new Error "Jscex not available -- Please include jscex.min.js"
/* Our own monad that runs on Q promises */
-class AsyncBuilder
+class AsyncBuilder extends Jscex.BuilderBase
Start: (_this, step) ->
__ = Q.defer!
step.next _this, !(type, value, target) ->
@@ -26,8 +26,6 @@ class AsyncBuilder
!(error) -> cb \throw, error
)
-AsyncBuilder:: <<<< Jscex.BuilderBase::
-
Jscex.binders.\async-q = \$await
Jscex.builders.\async-q = new AsyncBuilder
Jscex.modules.\async-q = true
Please sign in to comment.
Something went wrong with that request. Please try again.