OpenLayers OpenLayers

Changeset 251

Show
Ignore:
Timestamp:
05/22/06 07:09:27 (3 years ago)
Author:
euzuro
Message:

rename 'object' to 'image', coding standards, remove duplicate declaration of 'events'

Files:

Legend:

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

    r249 r251  
     1/** 
     2* @class 
     3*/ 
    14OpenLayers.Marker = Class.create(); 
    25OpenLayers.Marker.prototype = { 
     
    1316    data: null, 
    1417     
    15     /** @type */ 
     18    /** @type OpenLayers.Events*/ 
    1619    events: null, 
    1720     
     
    1922    map: null, 
    2023     
    21     object: null, 
    22      
    23     events:null, 
     24    /** @type DOMElement */ 
     25    image: null, 
    2426     
    2527    /**  
     28    * @constructor 
     29    * 
    2630    * @param {OpenLayers.Icon} icon 
    2731    * @param {OpenLayers.LonLat lonlat 
     
    3034        this.icon = icon; 
    3135        this.lonlat = lonlat; 
    32         this.object = OpenLayers.Util.createImage( 
    33             this.icon.url, 
    34             this.icon.size, 
    35             null, 
    36             "absolute" 
    37         ); 
    38         this.events = new OpenLayers.Events(this, this.object, null); 
     36        this.image = OpenLayers.Util.createImage(this.icon.url, 
     37                                                 this.icon.size, 
     38                                                 null, 
     39                                                 "absolute" 
     40                                                ); 
     41        this.events = new OpenLayers.Events(this, this.image, null); 
    3942    }, 
    4043     
     
    4750    */ 
    4851    draw: function(pixel) { 
    49         this.object.style.top = (pixel.y + this.icon.offset.y) + "px" 
    50         this.object.style.left = (pixel.x + this.icon.offset.x) + "px";  
    51         return this.object
     52        this.image.style.top = (pixel.y + this.icon.offset.y) + "px" 
     53        this.image.style.left = (pixel.x + this.icon.offset.x) + "px";  
     54        return this.image
    5255    },  
    5356