[Groonga-commit] groonga/gcs [ember] Delete invalid Domain record automatically

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 4 16:43:19 JST 2012


YUKI Hiroshi	2012-10-04 16:43:19 +0900 (Thu, 04 Oct 2012)

  New Revision: 4ad5f9715097027da7de26aae243129542e9675c
  https://github.com/groonga/gcs/commit/4ad5f9715097027da7de26aae243129542e9675c

  Log:
    Delete invalid Domain record automatically

  Modified files:
    public/js/gcs/models.js

  Modified: public/js/gcs/models.js (+5 -1)
===================================================================
--- public/js/gcs/models.js    2012-10-04 16:19:54 +0900 (7c52acc)
+++ public/js/gcs/models.js    2012-10-04 16:43:19 +0900 (f0b3cc1)
@@ -82,13 +82,17 @@ App.Adapter = DS.Adapter.extend({
           });
         },
         error: function(data) {
-                 console.log(data);
+          // console.log(data);
           store.recordWasInvalid(model, {name: "invalid"});
+          store.deleteRecord(model);
         }
       });
     } else {
       throw "Unsupported model";
     }
+  },
+  deleteRecord: function(store, type, model) {
+    store.didDeleteRecord(model);
   }
 });
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index