OpenLayers OpenLayers

Changeset 6820

Show
Ignore:
Timestamp:
04/07/08 22:04:28 (9 months ago)
Author:
pagameba
Message:

Closes #1490. Add comment to make it clear that callers of createPopup must not call destroy on returned popups but rather use the feature.destroyPopup method.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Feature.js

    r5614 r6820  
    162162     *  If no 'lonlat' is set, returns null.  
    163163     *  If no this.marker has been created, no anchor is sent. 
     164     * 
     165     *  Note - the returned popup object is 'owned' by the feature, so you 
     166     *      cannot use the popup's destroy method to discard the popup. 
     167     *      Instead, you must use the feature's destroyPopup 
    164168     *  
    165169     *  Note - this.popup is set to return value