(doc) Improve documentation of angular filters
parent
2981b0af00
commit
51b8ce7400
|
@ -1,7 +1,8 @@
|
|||
/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
|
||||
/**
|
||||
* @type {angular.Module}
|
||||
* loc - A simple filter to return the localized version of a string.
|
||||
* @memberof SOGo.Common
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
|
||||
/**
|
||||
* @type {angular.Module}
|
||||
* range - A simple filter that will return an array of the size of its argument.
|
||||
* @memberof SOGo.Common
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
@ -9,7 +10,7 @@
|
|||
function range() {
|
||||
return function(n) {
|
||||
var res = [];
|
||||
for (var i = 0; i < n; i++) {
|
||||
for (var i = 0; i < parseInt(n); i++) {
|
||||
res.push(i);
|
||||
}
|
||||
return res;
|
||||
|
|
Loading…
Reference in New Issue