Skip to content

Commit

Permalink
make clear that you can use jquery for async answers
Browse files Browse the repository at this point in the history
  • Loading branch information
rmurphey committed Jul 29, 2012
1 parent c695be6 commit 4bf0695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/async.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
if (typeof define !== 'function') { var define = require('amdefine')(module); }

define(function() {
define([ 'jquery' ], function($) {
return {
async : function() {
async : function(value) {

},

Expand Down
2 changes: 1 addition & 1 deletion tests/app/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4bf0695

Please sign in to comment.