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