This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b1195c
commit 3151d41
Showing
3 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Senna.js - A blazing-fast Single Page Application engine | ||
* @author Eduardo Lundgren <[email protected]> | ||
* @version v0.4.0 | ||
* @version v0.4.2 | ||
* @link http://sennajs.com | ||
* @license BSD | ||
*/ | ||
|
@@ -987,6 +987,18 @@ | |
return this; | ||
}; | ||
|
||
/** | ||
* Clear screens cache. | ||
* @chainable | ||
*/ | ||
senna.App.prototype.clearScreensCache = function() { | ||
for (var path in this.screens) { | ||
if (path !== this.activePath) { | ||
this.removeScreen_(path, this.screens[path]); | ||
} | ||
} | ||
}; | ||
|
||
/** | ||
* Retrieves or create a screen instance to a path. | ||
* @param {!String} path Path containing the querystring part. | ||
|
@@ -1473,14 +1485,6 @@ | |
delete this.screens[path]; | ||
}; | ||
|
||
senna.App.prototype.purgeCache = function() { | ||
for (var i in this.screens) { | ||
if (i !== this.activePath) { | ||
this.removeScreen_(i, this.screens[i]); | ||
} | ||
} | ||
}; | ||
|
||
/** | ||
* Sets link base path. | ||
* @param {!String} path | ||
|
Oops, something went wrong.