[Lada-commits] [PATCH] Use 'this' reference for idProperty in model

Wald Commits scm-commit at wald.intevation.org
Fri Aug 30 10:27:10 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1377851379 -7200
# Node ID 08bb418f31c9e867c8fc78f23e0e3a9dce2f5492
# Parent  ea424aacd07fc1ec37a079d19f12c4c689a8c902
Use 'this' reference for idProperty in model.

diff -r ea424aacd07f -r 08bb418f31c9 app/model/Base.js
--- a/app/model/Base.js	Thu Aug 29 16:34:53 2013 +0200
+++ b/app/model/Base.js	Fri Aug 30 10:29:39 2013 +0200
@@ -11,7 +11,7 @@
      * as some items can not be identified with a singe id.
      */
     getEidi: function() {
-        return "/" + idProperty;
+        return "/" + this.idProperty;
     },
     /**
      * Helper function to make a AJAX request against the authinfo interface


More information about the Lada-commits mailing list