Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolundgren committed Dec 22, 2015
1 parent 9b1195c commit 3151d41
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 20 deletions.
22 changes: 13 additions & 9 deletions build/senna-debug.js
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
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 3151d41

Please sign in to comment.