[Lada-commits] [PATCH 13 of 56] Added Helpers class to provide some helper methods

Wald Commits scm-commit at wald.intevation.org
Tue Aug 13 09:53:39 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1376054529 -7200
# Node ID 1e1ee8abf91bdb5069c340f95236a8111ccfd832
# Parent  529da633b8e375022504144b227336fc48a1637b
Added Helpers class to provide some helper methods.

diff -r 529da633b8e3 -r 1e1ee8abf91b app/lib/Helpers.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/lib/Helpers.js	Fri Aug 09 15:22:09 2013 +0200
@@ -0,0 +1,15 @@
+/**
+ * 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.
+            return new Date(v);
+        }
+    }
+})


More information about the Lada-commits mailing list