comparison app/lib/Helpers.js @ 491:850ccfe5f3c4

Code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 23:23:32 +0100
parents debfcc7713e3
children
comparison
equal deleted inserted replaced
490:446e99cfd425 491:850ccfe5f3c4
13 Ext.define('Lada.lib.Helpers', { 13 Ext.define('Lada.lib.Helpers', {
14 statics: { 14 statics: {
15 /** 15 /**
16 * Function to translate a timestamp into a date 16 * Function to translate a timestamp into a date
17 */ 17 */
18 ts2date: function(v, record){ 18 ts2date: function(v, record) {
19 // Converts a timestamp into a date object. 19 // Converts a timestamp into a date object.
20 if (v === null || v === undefined) { 20 if (v === null || v === undefined) {
21 return v; 21 return v;
22 } 22 }
23 return new Date(v); 23 return new Date(v);

http://lada.wald.intevation.org