Changeset 1219

Show
Ignore:
Timestamp:
10/16/08 13:43:22 (3 months ago)
Author:
dcorpataux
Message:

Let mapfish.Protocol.Trigger Event Decorator?.handleCRUD allow null options, see #265

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/MapFish.js

    r1190 r1219  
    102102            "core/Searcher/Map.js", 
    103103            "core/Searcher/Form.js", 
     104            "core/Strategy.js", 
     105            "core/Strategy/Search.js", 
    104106            "core/PrintProtocol.js", 
    105107            "core/Offline.js", 
  • sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/core/Protocol/TriggerEventDecorator.js

    r1191 r1219  
    111111        return this.protocol.read(newOptions); 
    112112    }, 
    113      
    114      
     113 
     114 
    115115    /** 
    116116     * Method: create 
     
    135135        return this.protocol.create(features, newOptions); 
    136136    }, 
    137      
     137 
    138138    /** 
    139139     * Method: update 
     
    158158        return this.protocol.update(features, newOptions); 
    159159    }, 
    160      
     160 
    161161    /** 
    162162     * Method: delete 
     
    235235     */ 
    236236    handleCRUD: function(options, response) { 
    237         if (options.callback) { 
     237        if (options && options.callback) { 
    238238            options.callback.call(options.scope, response); 
    239239        } 
  • sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/tests/list-tests.html

    r1190 r1219  
    77    <li>core/Protocol/test_MergeFilterDecorator.html</li> 
    88    <li>core/Protocol/test_TriggerEventDecorator.html</li> 
     9    <li>core/Strategy/test_Search.html</li> 
    910    <li>widgets/tree/test_LayerTree.html</li> 
    1011    <li>widgets/tree/test_LayerTree_separator.html</li>