Mercurial > lada > lada-client
view app/lib/Helpers.js @ 466:2561d203c77e
Added tag 1.0 for changeset 20df35a31490
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 09 Jan 2014 11:30:46 +0100 |
parents | 60a2812568cb |
children | debfcc7713e3 |
line wrap: on
line source
/** * Helper class * This class provides some globally used functions. */ Ext.define('Lada.lib.Helpers', { statics: { /** * Function to translate a timestamp into a date */ ts2date: function(v, record){ // Converts a timestamp into a date object. if (v === null || v === undefined) { return v; } return new Date(v); } } })