Changeset 57

Show
Ignore:
Timestamp:
11/01/08 16:34:35 (2 months ago)
Author:
teemow
Message:

fixed getting the result set after the afterFind callback and changed model.find to model.get

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • code/branches/sandboxes/teemow/src/jamal/libs/model.js

    r54 r57  
    121121     * @cat model 
    122122     */ 
    123     find: function(action, callback) { 
     123    get: function(action, callback) { 
    124124        var model = this; 
    125125        var settings = this.settings(); 
     
    134134         
    135135        settings.callback = function(result) { 
    136             model.afterFind(result); 
     136            result = model.afterFind(result); 
     137            callback(result); 
    137138        }; 
    138139