diff options
| author | letsmakesense | 2014-01-18 14:02:33 -0600 | 
|---|---|---|
| committer | Caitlin Potter | 2014-01-18 17:36:58 -0500 | 
| commit | 90e60d2d54ddadf29e5b7c52ac16b3c0f52b4650 (patch) | |
| tree | a49813b008b725ed6a5b848df35a214c82f20f8a | |
| parent | 928d000db75e898ed860ecc07c0b0dce56e57533 (diff) | |
| download | angular.js-90e60d2d54ddadf29e5b7c52ac16b3c0f52b4650.tar.bz2 | |
docs($q): note that function okToGreet is expected to be defined in example
the function okToGreet wasn't defined, so this example wouldn't work properly.
I've decided that instead of adding unrelated code to the example, it should just be noted that the
function is expected to be defined in the lexical scope.
Closes #5878
| -rw-r--r-- | src/ng/q.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/ng/q.js b/src/ng/q.js index c1f6712a..5c36dc07 100644 --- a/src/ng/q.js +++ b/src/ng/q.js @@ -16,9 +16,9 @@   * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.   *   * <pre> - *   // for the purpose of this example let's assume that variables `$q` and `scope` are - *   // available in the current lexical scope (they could have been injected or passed in). - * + *   // for the purpose of this example let's assume that variables `$q`, `scope` and `okToGreet` + *   // are available in the current lexical scope (they could have been injected or passed in). + *    *   function asyncGreet(name) {   *     var deferred = $q.defer();   * | 
