aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-03-07 19:58:19 +0000
committerPeter Bacon Darwin2014-03-07 20:05:59 +0000
commitdc57fe97e1be245fa08f25143302ee9dd850c5c9 (patch)
treed9166499f0f7f61a9d7f805700d14f0831e44ef7
parent853999de10b8fd0116f9da80af2c192a4a5fd39b (diff)
downloadangular.js-dc57fe97e1be245fa08f25143302ee9dd850c5c9.tar.bz2
style(jsdoc tags): remove/ammend invalid tags
As highlighted by the new sterner dgeni.
-rw-r--r--src/loader.js2
-rw-r--r--src/ng/browser.js2
-rw-r--r--src/ng/directive/ngInclude.js2
-rw-r--r--src/ng/directive/ngSwitch.js1
-rw-r--r--src/ng/filter/filters.js2
-rw-r--r--src/ng/rootScope.js2
-rw-r--r--src/ngAnimate/animate.js3
7 files changed, 3 insertions, 11 deletions
diff --git a/src/loader.js b/src/loader.js
index 08d285c3..5c72a982 100644
--- a/src/loader.js
+++ b/src/loader.js
@@ -114,7 +114,6 @@ function setupModuleLoader(window) {
* @ngdoc property
* @name angular.Module#requires
* @module ng
- * @propertyOf angular.Module
* @returns {Array.<string>} List of module names which must be loaded before this module.
* @description
* Holds the list of modules which the injector will load before the current module is
@@ -126,7 +125,6 @@ function setupModuleLoader(window) {
* @ngdoc property
* @name angular.Module#name
* @module ng
- * @propertyOf angular.Module
* @returns {string} Name of the module.
* @description
*/
diff --git a/src/ng/browser.js b/src/ng/browser.js
index 6bec5280..f9502cd4 100644
--- a/src/ng/browser.js
+++ b/src/ng/browser.js
@@ -194,7 +194,6 @@ function Browser(window, document, $log, $sniffer) {
/**
* @name $browser#onUrlChange
- * @TODO(vojta): refactor to use node's syntax for events
*
* @description
* Register callback function that will be called, when url changes.
@@ -215,6 +214,7 @@ function Browser(window, document, $log, $sniffer) {
* @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
*/
self.onUrlChange = function(callback) {
+ // TODO(vojta): refactor to use node's syntax for events
if (!urlChangeInit) {
// We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)
// don't fire popstate when user change the address bar and don't fire hashchange when url
diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js
index 272e199a..a41b78b2 100644
--- a/src/ng/directive/ngInclude.js
+++ b/src/ng/directive/ngInclude.js
@@ -146,7 +146,6 @@
/**
* @ngdoc event
* @name ngInclude#$includeContentRequested
- * @eventOf ng.directive:ngInclude
* @eventType emit on the scope ngInclude was declared in
* @description
* Emitted every time the ngInclude content is requested.
@@ -156,7 +155,6 @@
/**
* @ngdoc event
* @name ngInclude#$includeContentLoaded
- * @eventOf ng.directive:ngInclude
* @eventType emit on the current ngInclude scope
* @description
* Emitted every time the ngInclude content is reloaded.
diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js
index 378c0b50..021f4c7d 100644
--- a/src/ng/directive/ngSwitch.js
+++ b/src/ng/directive/ngSwitch.js
@@ -41,7 +41,6 @@
* @scope
* @priority 800
* @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.
- * @paramDescription
* On child elements add:
*
* * `ngSwitchWhen`: the case statement to match against. If match then this
diff --git a/src/ng/filter/filters.js b/src/ng/filter/filters.js
index 7c805660..b00df296 100644
--- a/src/ng/filter/filters.js
+++ b/src/ng/filter/filters.js
@@ -471,7 +471,7 @@ function dateFilter($locale) {
* @returns {string} JSON string.
*
*
- * @example:
+ * @example
<example>
<file name="index.html">
<pre>{{ {'name':'value'} | json }}</pre>
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index 9c75534c..2bb965bb 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -139,7 +139,6 @@ function $RootScopeProvider(){
/**
* @ngdoc property
* @name $rootScope.Scope#$id
- * @propertyOf ng.$rootScope.Scope
* @returns {number} Unique scope ID (monotonically increasing alphanumeric sequence) useful for
* debugging.
*/
@@ -652,7 +651,6 @@ function $RootScopeProvider(){
/**
* @ngdoc event
* @name $rootScope.Scope#$destroy
- * @eventOf ng.$rootScope.Scope
* @eventType broadcast on scope being destroyed
*
* @description
diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js
index 6cc633a3..447dfa3a 100644
--- a/src/ngAnimate/animate.js
+++ b/src/ngAnimate/animate.js
@@ -701,8 +701,7 @@ angular.module('ngAnimate', ['ng'])
/**
*
* @ngdoc function
- * @name ng.$animate#setClass
- * @methodOf ng.$animate
+ * @name $animate#setClass
* @function
* @description Adds and/or removes the given CSS classes to and from the element.
* Once complete, the done() callback will be fired (if provided).