diff app/model/Staat.js @ 307:5f373d9d55cd

Use ts2date function from lib.Helpers. Remove old code
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 09 Aug 2013 15:24:00 +0200
parents e9fb4814153a
children dd939a09e4dd
line wrap: on
line diff
--- a/app/model/Staat.js	Fri Aug 09 15:24:00 2013 +0200
+++ b/app/model/Staat.js	Fri Aug 09 15:24:00 2013 +0200
@@ -1,5 +1,6 @@
 Ext.define('Lada.model.Staat', {
     extend: 'Ext.data.Model',
+    requires: ['Lada.lib.Helpers'],
     fields: [
         {name: "staatId", type: 'int'},
         {name: "staat"},
@@ -19,8 +20,3 @@
         }
     }
 });
-
-function ts2date(v, record){
-    // Converts a timestamp into a date object.
-    return new Date(v);
-}

http://lada.wald.intevation.org