Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make clear that you can use jquery for async answers

commit 4bf0695ea541756d0e6e50705b2ad268444d4e88 1 parent c695be6
@rmurphey authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/async.js
  2. +1 −1  tests/app/async.js
View
4 app/async.js
@@ -1,8 +1,8 @@
if (typeof define !== 'function') { var define = require('amdefine')(module); }
-define(function() {
+define([ 'jquery' ], function($) {
return {
- async : function() {
+ async : function(value) {
},
View
2  tests/app/async.js
@@ -5,7 +5,7 @@ define([
it("you should understand how to use 'promises'", function(done) {
var flag = false;
- answers.async().then(function(result) {
+ answers.async(true).then(function(result) {
flag = result;
expect(flag).to.be(true);
done();
Please sign in to comment.
Something went wrong with that request. Please try again.