aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPascal Borreli2013-03-21 19:09:47 +0000
committerPawel Kozlowski2013-03-29 23:14:55 +0100
commit9480136d9f062ec4b8df0a35914b48c0d61e0002 (patch)
tree5d345c7be4f20b4ad688ede7ed6be4147a91cb45 /src
parent4ae46814ff4e7c0bbcdbbefc0a97277283a84065 (diff)
downloadangular.js-9480136d9f062ec4b8df0a35914b48c0d61e0002.tar.bz2
docs(*): fixed typos
Diffstat (limited to 'src')
-rw-r--r--src/Angular.js6
-rw-r--r--src/bootstrap/google-prettify/prettify.js2
-rw-r--r--src/jqLite.js2
-rw-r--r--src/ng/browser.js6
-rw-r--r--src/ng/compile.js2
-rw-r--r--src/ng/directive/input.js2
-rw-r--r--src/ng/directive/ngBind.js2
-rw-r--r--src/ng/directive/ngCloak.js2
-rw-r--r--src/ng/directive/ngPluralize.js4
-rw-r--r--src/ng/directive/ngSwitch.js4
-rw-r--r--src/ng/filter/orderBy.js2
-rw-r--r--src/ng/http.js2
-rw-r--r--src/ng/parse.js6
-rw-r--r--src/ng/rootScope.js2
-rw-r--r--src/ng/route.js2
-rw-r--r--src/ng/window.js2
-rw-r--r--src/ngResource/resource.js8
-rw-r--r--src/ngScenario/Scenario.js2
18 files changed, 29 insertions, 29 deletions
diff --git a/src/Angular.js b/src/Angular.js
index c07a788c..d7648d72 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -631,7 +631,7 @@ function shallowCopy(src, dst) {
* * Both objects or values are of the same type and all of their properties pass `===` comparison.
* * Both values are NaN. (In JavasScript, NaN == NaN => false. But we consider two NaN as equal)
*
- * During a property comparision, properties of `function` type and properties with names
+ * During a property comparison, properties of `function` type and properties with names
* that begin with `$` are ignored.
*
* Scope and DOMWindow objects are being compared only be identify (`===`).
@@ -838,7 +838,7 @@ function toKeyValue(obj) {
/**
- * We need our custom method because encodeURIComponent is too agressive and doesn't follow
+ * We need our custom method because encodeURIComponent is too aggressive and doesn't follow
* http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
* segments:
* segment = *pchar
@@ -858,7 +858,7 @@ function encodeUriSegment(val) {
/**
* This method is intended for encoding *key* or *value* parts of query component. We need a custom
- * method becuase encodeURIComponent is too agressive and encodes stuff that doesn't have to be
+ * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
* encoded per http://tools.ietf.org/html/rfc3986:
* query = *( pchar / "/" / "?" )
* pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
diff --git a/src/bootstrap/google-prettify/prettify.js b/src/bootstrap/google-prettify/prettify.js
index b18fc223..63a12ad3 100644
--- a/src/bootstrap/google-prettify/prettify.js
+++ b/src/bootstrap/google-prettify/prettify.js
@@ -643,7 +643,7 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[
* recognized.
*
* Shortcut is an optional string of characters, any of which, if the first
- * character, gurantee that this pattern and only this pattern matches.
+ * character, guarantee that this pattern and only this pattern matches.
*
* @param {Array} shortcutStylePatterns patterns that always start with
* a known character. Must have a shortcut string.
diff --git a/src/jqLite.js b/src/jqLite.js
index 2c209ecd..1c2aee3c 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -59,7 +59,7 @@
* - [val()](http://api.jquery.com/val/)
* - [wrap()](http://api.jquery.com/wrap/)
*
- * ## In addtion to the above, Angular provides additional methods to both jQuery and jQuery lite:
+ * ## In addition to the above, Angular provides additional methods to both jQuery and jQuery lite:
*
* - `controller(name)` - retrieves the controller of the current element or its parent. By default
* retrieves controller associated with the `ngController` directive. If `name` is provided as
diff --git a/src/ng/browser.js b/src/ng/browser.js
index fa050d54..bda372be 100644
--- a/src/ng/browser.js
+++ b/src/ng/browser.js
@@ -252,7 +252,7 @@ function Browser(window, document, $log, $sniffer) {
* @methodOf ng.$browser
*
* @param {string=} name Cookie name
- * @param {string=} value Cokkie value
+ * @param {string=} value Cookie value
*
* @description
* The cookies method provides a 'private' low level access to browser cookies.
@@ -314,7 +314,7 @@ function Browser(window, document, $log, $sniffer) {
* @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
*
* @description
- * Executes a fn asynchroniously via `setTimeout(fn, delay)`.
+ * Executes a fn asynchronously via `setTimeout(fn, delay)`.
*
* Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
* `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed
@@ -341,7 +341,7 @@ function Browser(window, document, $log, $sniffer) {
* Cancels a defered task identified with `deferId`.
*
* @param {*} deferId Token returned by the `$browser.defer` function.
- * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfuly canceled.
+ * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully canceled.
*/
self.defer.cancel = function(deferId) {
if (pendingDeferIds[deferId]) {
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 68a3dca1..94168fe9 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -170,7 +170,7 @@ function $CompileProvider($provide) {
*
* @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
* <code>ng-bind</code>).
- * @param {function} directiveFactory An injectable directive factroy function. See {@link guide/directive} for more
+ * @param {function} directiveFactory An injectable directive factory function. See {@link guide/directive} for more
* info.
* @returns {ng.$compileProvider} Self for chaining.
*/
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index aaabd103..71456470 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -805,7 +805,7 @@ var VALID_CLASS = 'ng-valid',
* @property {Array.<Function>} $formatters Whenever the model value changes, it executes all of
* these functions to convert the value as well as validate.
*
- * @property {Object} $error An bject hash with all errors as keys.
+ * @property {Object} $error An object hash with all errors as keys.
*
* @property {boolean} $pristine True if user has not interacted with the control yet.
* @property {boolean} $dirty True if user has already interacted with the control.
diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js
index 0c99f27d..32e802ce 100644
--- a/src/ng/directive/ngBind.js
+++ b/src/ng/directive/ngBind.js
@@ -12,7 +12,7 @@
* Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
* `{{ expression }}` which is similar but less verbose.
*
- * Once scenario in which the use of `ngBind` is prefered over `{{ expression }}` binding is when
+ * Once scenario in which the use of `ngBind` is preferred over `{{ expression }}` binding is when
* it's desirable to put bindings into template that is momentarily displayed by the browser in its
* raw state before Angular compiles it. Since `ngBind` is an element attribute, it makes the
* bindings invisible to the user while the page is loading.
diff --git a/src/ng/directive/ngCloak.js b/src/ng/directive/ngCloak.js
index 0455dcc9..d46a24f2 100644
--- a/src/ng/directive/ngCloak.js
+++ b/src/ng/directive/ngCloak.js
@@ -10,7 +10,7 @@
* directive to avoid the undesirable flicker effect caused by the html template display.
*
* The directive can be applied to the `<body>` element, but typically a fine-grained application is
- * prefered in order to benefit from progressive rendering of the browser view.
+ * preferred in order to benefit from progressive rendering of the browser view.
*
* `ngCloak` works in cooperation with a css rule that is embedded within `angular.js` and
* `angular.min.js` files. Following is the css rule:
diff --git a/src/ng/directive/ngPluralize.js b/src/ng/directive/ngPluralize.js
index 3938d4e3..a02035ea 100644
--- a/src/ng/directive/ngPluralize.js
+++ b/src/ng/directive/ngPluralize.js
@@ -19,7 +19,7 @@
* {@link http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* plural categories} in Angular's default en-US locale: "one" and "other".
*
- * While a pural category may match many numbers (for example, in en-US locale, "other" can match
+ * While a plural category may match many numbers (for example, in en-US locale, "other" can match
* any number that is not 1), an explicit number rule can only match one number. For example, the
* explicit number rule for "3" matches the number 3. You will see the use of plural categories
* and explicit number rules throughout later parts of this documentation.
@@ -87,7 +87,7 @@
* plural categories "one" and "other".
*
* @param {string|expression} count The variable to be bounded to.
- * @param {string} when The mapping between plural category to its correspoding strings.
+ * @param {string} when The mapping between plural category to its corresponding strings.
* @param {number=} offset Offset to deduct from the total number.
*
* @example
diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js
index 88b1e701..44985737 100644
--- a/src/ng/directive/ngSwitch.js
+++ b/src/ng/directive/ngSwitch.js
@@ -20,7 +20,7 @@
* @scope
* @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.
* @paramDescription
- * On child elments add:
+ * On child elements add:
*
* * `ngSwitchWhen`: the case statement to match against. If match then this
* case will be displayed. If the same match appears multiple times, all the
@@ -59,7 +59,7 @@
select('selection').option('home');
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/Home Span/);
});
- it('should select deafault', function() {
+ it('should select default', function() {
select('selection').option('other');
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/default/);
});
diff --git a/src/ng/filter/orderBy.js b/src/ng/filter/orderBy.js
index f9f9c09a..88784c92 100644
--- a/src/ng/filter/orderBy.js
+++ b/src/ng/filter/orderBy.js
@@ -9,7 +9,7 @@
* Orders a specified `array` by the `expression` predicate.
*
* Note: this function is used to augment the `Array` type in Angular expressions. See
- * {@link ng.$filter} for more informaton about Angular arrays.
+ * {@link ng.$filter} for more information about Angular arrays.
*
* @param {Array} array The array to sort.
* @param {function(*)|string|Array.<(function(*)|string)>} expression A predicate to be
diff --git a/src/ng/http.js b/src/ng/http.js
index d54e8bd3..ba512ba7 100644
--- a/src/ng/http.js
+++ b/src/ng/http.js
@@ -297,7 +297,7 @@ function $HttpProvider() {
* `$httpProvider.defaults.headers.get['My-Header']='value'`.
*
* Additionally, the defaults can be set at runtime via the `$http.defaults` object in a similar
- * fassion as described above.
+ * fashion as described above.
*
*
* # Transforming Requests and Responses
diff --git a/src/ng/parse.js b/src/ng/parse.js
index 4651fc10..f931f613 100644
--- a/src/ng/parse.js
+++ b/src/ng/parse.js
@@ -697,11 +697,11 @@ function setter(obj, path, setValue) {
}
/**
- * Return the value accesible from the object by path. Any undefined traversals are ignored
+ * Return the value accessible from the object by path. Any undefined traversals are ignored
* @param {Object} obj starting object
* @param {string} path path to traverse
* @param {boolean=true} bindFnToScope
- * @returns value as accesbile by path
+ * @returns value as accessible by path
*/
//TODO(misko): this function needs to be removed
function getter(obj, path, bindFnToScope) {
@@ -873,7 +873,7 @@ function getterFn(path, csp) {
* @returns {function(context, locals)} a function which represents the compiled expression:
*
* * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (tipically a scope object).
+ * are evaluated against (typically a scope object).
* * `locals` – `{object=}` – local variables context object, useful for overriding values in
* `context`.
*
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index 5981b7e7..48ba038f 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -736,7 +736,7 @@ function $RootScopeProvider(){
* Afterwards, the event propagates to all direct and indirect scopes of the current scope and
* calls all registered listeners along the way. The event cannot be canceled.
*
- * Any exception emmited from the {@link ng.$rootScope.Scope#$on listeners} will be passed
+ * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
*
* @param {string} name Event name to emit.
diff --git a/src/ng/route.js b/src/ng/route.js
index e47f8a5a..b52f4351 100644
--- a/src/ng/route.js
+++ b/src/ng/route.js
@@ -486,7 +486,7 @@ function $RouteProvider(){
}
/**
- * @returns interpolation of the redirect path with the parametrs
+ * @returns interpolation of the redirect path with the parameters
*/
function interpolate(string, params) {
var result = [];
diff --git a/src/ng/window.js b/src/ng/window.js
index a23d2306..8eec7cba 100644
--- a/src/ng/window.js
+++ b/src/ng/window.js
@@ -8,7 +8,7 @@
* A reference to the browser's `window` object. While `window`
* is globally available in JavaScript, it causes testability problems, because
* it is a global variable. In angular we always refer to it through the
- * `$window` service, so it may be overriden, removed or mocked for testing.
+ * `$window` service, so it may be overridden, removed or mocked for testing.
*
* All expressions are evaluated with respect to current scope so they don't
* suffer from window globality.
diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js
index ddd260bd..dd3fe3a6 100644
--- a/src/ngResource/resource.js
+++ b/src/ngResource/resource.js
@@ -27,14 +27,14 @@
*
* and you ready to get started!
*
- * @param {string} url A parameterized URL template with parameters prefixed by `:` as in
+ * @param {string} url A parametrized URL template with parameters prefixed by `:` as in
* `/user/:username`. If you are using a URL with a port number (e.g.
* `http://example.com:8080/api`), you'll need to escape the colon character before the port
* number, like this: `$resource('http://example.com\\:8080/api')`.
*
* @param {Object=} paramDefaults Default values for `url` parameters. These can be overridden in
* `actions` methods. If any of the parameter value is a function, it will be executed every time
- * when a param value needs to be obtained for a request (unless the param was overriden).
+ * when a param value needs to be obtained for a request (unless the param was overridden).
*
* Each key value in the parameter object is first bound to url template if present and then any
* excess keys are appended to the url search query after the `?`.
@@ -61,7 +61,7 @@
* and `JSONP`.
* - **`params`** – {Object=} – Optional set of pre-bound parameters for this action. If any of the
* parameter value is a function, it will be executed every time when a param value needs to be
- * obtained for a request (unless the param was overriden).
+ * obtained for a request (unless the param was overridden).
* - **`url`** – {string} – action specific `url` override. The url templating is supported just like
* for the resource-level urls.
* - **`isArray`** – {boolean=} – If true then the returned object for this action is an array, see
@@ -296,7 +296,7 @@ angular.module('ngResource', ['ng']).
/**
* This method is intended for encoding *key* or *value* parts of query component. We need a custom
- * method becuase encodeURIComponent is too agressive and encodes stuff that doesn't have to be
+ * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
* encoded per http://tools.ietf.org/html/rfc3986:
* query = *( pchar / "/" / "?" )
* pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
diff --git a/src/ngScenario/Scenario.js b/src/ngScenario/Scenario.js
index 1f10fc21..1ed9d119 100644
--- a/src/ngScenario/Scenario.js
+++ b/src/ngScenario/Scenario.js
@@ -145,7 +145,7 @@ angular.scenario.setUpAndRun = function(config) {
/**
* Iterates through list with iterator function that must call the
- * continueFunction to continute iterating.
+ * continueFunction to continue iterating.
*
* @param {Array} list list to iterate over
* @param {function()} iterator Callback function(value, continueFunction)