Ticket #51 + some minor improvments.

This commit is contained in:
tonio
2010-04-30 10:43:05 +02:00
parent b985729e9a
commit 29e6bf4fb9
5 changed files with 22 additions and 32 deletions
+7 -1
View File
@@ -31,7 +31,8 @@ check_anchor = function() {
delete(current_anchor.force);
current_anchor.from_string(location.hash);
if (!current_anchor.serialized) {
query = current_anchor.deflocation;
location.hash = current_anchor.deflocation;
return;
} else {
query = current_anchor.serialized.substring(1);
}
@@ -155,6 +156,11 @@ function HashWrapper(deflocation) {
return this;
};
this.addbaseurl = function(value) {
newbase = this.base + value;
return this.baseurl(newbase);
};
this.getbaseurl = function() {
return this.base.substr(0, this.base.length - 1);
};