rem: function Map(){ var keys = new Array(); this.contains = function(key){ var entry = findEntry(key); return !(entry == null || entry instanceof NullKey); } this.get = function(key) { var entry = findEntry(key); if ( !(entry == null || entry instanceof NullKey) ) return entry.value; else return null; }; this.put = function(key, value) { var entry = findEntry(key); if (entry){ entry.value = value; } else { addNewEntry(key, value); } }; this.remove = function (key){ for (var i=0;i<keys.length;i++){ var entry = keys[i]; if (entry instanceof NullKey) continue; if (entry.key == key){ keys[i] = NullKey; } } }; this.size = function() { return keys.length; }; function findEntry(key){ for (var i=0;i<keys.length;i++){ var entry = keys[i]; if (entry instanceof NullKey) continue; if (entry.key == key){ return entry } } return null; }; function addNewEntry(key, value){ var entry = new Object(); entry.key = key; entry.value = value; keys[keys.length] = entry; } } 
add: Log4js.Map = function() { this.keys = new Array(); }; 
context: function Map(){    var keys = new Array();    this.contains = function(key){       var entry = findEntry(key);       return !(entry == null || entry instanceof NullKey);    }    this.get = function(key) {     var entry = findEntry(key);     if ( !(entry == null || entry instanceof NullKey) )        return entry.value;      else        return null;    };    this.put = function(key, value) {      var entry = findEntry(key);      if (entry){        entry.value = value;      } else {        addNewEntry(key, value);      }    };    this.remove = function (key){      for (var i=0;i<keys.length;i++){        var entry = keys[i];        if (entry instanceof NullKey) continue;        if (entry.key == key){            keys[i] = NullKey;        }      }            };    this.size = function() {    	return keys.length;    };    function findEntry(key){      for (var i=0;i<keys.length;i++){        var entry = keys[i];        if (entry instanceof NullKey) continue;        if (entry.key == key){            return entry        }      }      return null;    };    function addNewEntry(key, value){        var entry = new Object();        entry.key = key;        entry.value = value;        keys[keys.length] = entry;     }  }
meta: 2141	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2141/1262bdbcf021afe53e2127f4792d5bb0f6115094/log4js.js/clean/src/js/log4js.js