Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Recompile from babel
  • Loading branch information
Brandon committed Sep 3, 2016
1 parent 4aace5c commit 74a7d7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -133,23 +133,27 @@ var BackForwardHistory = function () {
key: 'setTitleForKey',
value: function setTitleForKey(key, title) {
this.historyStack[this.getIndexForKey(key)].title = title;
this.saveStateToSession();
}
}, {
key: 'setTitleForCurrentLocation',
value: function setTitleForCurrentLocation(title) {
var n = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];

this.historyStack[this.currentIndex + n].title = title;
this.saveStateToSession();
}
}, {
key: 'setTagForKey',
value: function setTagForKey(key, tag) {
this.tags[tag] = key;
this.saveStateToSession();
}
}, {
key: 'deleteTagForKey',
value: function deleteTagForKey(tag) {
delete this.tags[tag];
this.saveStateToSession();
}
}, {
key: 'isCurrentlyOnTag',
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "back-forward-history",
"version": "1.1.3",
"version": "1.1.4",
"description": "This is an addon to the history JavaScript library. It enables tracking of back and forward locations.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 74a7d7b

Please sign in to comment.