Mercurial > lada > lada-client
comparison app/lib/Helpers.js @ 297:1e1ee8abf91b
Added Helpers class to provide some helper methods.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 15:22:09 +0200 |
parents | |
children | 60a2812568cb |
comparison
equal
deleted
inserted
replaced
296:529da633b8e3 | 297:1e1ee8abf91b |
---|---|
1 /** | |
2 * Helper class | |
3 * This class provides some globally used functions. | |
4 */ | |
5 Ext.define('Lada.lib.Helpers', { | |
6 statics: { | |
7 /** | |
8 * Function to translate a timestamp into a date | |
9 */ | |
10 ts2date: function(v, record){ | |
11 // Converts a timestamp into a date object. | |
12 return new Date(v); | |
13 } | |
14 } | |
15 }) |