Moved the Scholar.Hash constructor out of the main Scholar constructor, where I had put it for some reason -- ignore

This commit is contained in:
Dan Stillman 2006-06-13 15:14:22 +00:00
parent ca2045a305
commit ba16889bb0

View file

@ -24,8 +24,6 @@ var Scholar = new function(){
this.randomString = randomString;
this.getRandomID = getRandomID;
this.Hash = Hash;
/*
* Initialize the extension
*/
@ -233,9 +231,12 @@ var Scholar = new function(){
return rnd;
}
};
/*
/**
* Class for creating hash arrays that behave a bit more sanely
*
* Hashes can be created in the constructor by alternating key and val:
@ -256,8 +257,8 @@ var Scholar = new function(){
* Adapated from http://www.mojavelinux.com/articles/javascript_hashes.html
* (c) Mojavelinux, Inc.
* License: Creative Commons
*/
function Hash(){
**/
Scholar.Hash = function(){
this.length = 0;
this.items = new Array();
@ -270,8 +271,6 @@ var Scholar = new function(){
}
}
}
};
Scholar.Hash.prototype.get = function(in_key){
return this.items[in_key];