[Groonga-commit] groonga/gcs [ember] Simplify executeSearch method

Back to archive index

Yoji SHIDARA null+****@clear*****
Tue Sep 25 15:55:17 JST 2012


Yoji SHIDARA	2012-09-25 15:55:17 +0900 (Tue, 25 Sep 2012)

  New Revision: 3569f570e759b7606501f604641a74765dd4bdd9
  https://github.com/groonga/gcs/commit/3569f570e759b7606501f604641a74765dd4bdd9

  Log:
    Simplify executeSearch method

  Modified files:
    public/js/gcs.js

  Modified: public/js/gcs.js (+2 -4)
===================================================================
--- public/js/gcs.js    2012-09-25 15:54:22 +0900 (e8f314d)
+++ public/js/gcs.js    2012-09-25 15:55:17 +0900 (22212c5)
@@ -83,13 +83,11 @@ App.SearchController = Ember.ArrayController.extend({
     return params;
   }.property('query', 'perPage', 'start', 'searchEndpoint'),
   executeSearch: function(query) {
-    var searchEndpoint = this.get('searchEndpoint');
-    var params = this.get('paramsForRequest');
     var self = this;
     $.ajax({
       type: 'GET',
-      url: searchEndpoint,
-      data: params,
+      url: self.get('searchEndpoint'),
+      data: self.get('paramsForRequest'),
       dataType: 'jsonp',
       success: function(data) {
         self.set('data', data);
-------------- next part --------------
HTML����������������������������...
Download 



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