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
1 changed files with 38 additions and 39 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue