(doc) Improve documentation of angular filters

pull/91/head
Francis Lachapelle 2015-07-23 15:32:56 -04:00
parent 2981b0af00
commit 51b8ce7400
2 changed files with 5 additions and 3 deletions

View File

@ -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';

View File

@ -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;