From 90e60d2d54ddadf29e5b7c52ac16b3c0f52b4650 Mon Sep 17 00:00:00 2001 From: letsmakesense Date: Sat, 18 Jan 2014 14:02:33 -0600 Subject: 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 --- src/ng/q.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ng') 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. * *
- * // 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();
*
--
cgit v1.2.3