Skip to content

Commit 81f16f9

Browse files
committed
added: F.on('cache-set')
1 parent 988956a commit 81f16f9

5 files changed

Lines changed: 8 additions & 3 deletions

File tree

changes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ source-code: "tabs" instead of "spaces"
3030
- added: Utils.clearDNS() clears DNS cache
3131
- added: Utils.isObject()
3232
- added: framework.onCompileView(name, content, model)
33+
- added: framework.on('cache-set', function(name, value, expire))
3334
- added: `@{compile handlerbars}CONTENT TO COMPILE@{end}`
3435
- added: `@{compile}CONTENT TO COMPILE@{end}`
3536
- added: Utils.streamer(delimiter, function(value, index)) returns function

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function Framework() {
189189

190190
this.id = null;
191191
this.version = 1730;
192-
this.version_header = '1.7.3 (build: 45)';
192+
this.version_header = '1.7.3 (build: 46)';
193193

194194
var version = process.version.toString().replace('v', '').replace(/\./g, '');
195195

@@ -6969,7 +6969,7 @@ FrameworkPath.prototype.packages = function(filename) {
69696969
Cache class
69706970
@framework {Framework}
69716971
*/
6972-
function FrameworkCache(framework) {
6972+
function FrameworkCache() {
69736973
this.items = {};
69746974
this.count = 1;
69756975
this.interval = null;
@@ -7057,6 +7057,8 @@ FrameworkCache.prototype.add = function(name, value, expire) {
70577057
}
70587058

70597059
self.items[name] = { value: value, expire: expire };
7060+
framework.emit('cache-set', name, value, expire);
7061+
70607062
return value;
70617063
};
70627064

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@
6767
"scripts": {
6868
"test": "echo \"Error: no test specified\" && exit 1"
6969
},
70-
"version": "1.7.3-45"
70+
"version": "1.7.3-46"
7171
}

test/test-framework-release.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ function run() {
531531
});
532532
});
533533
}
534+
534535
/*
535536
var mem = require('memwatch');
536537

test/views/fromURL.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@{config.name}

0 commit comments

Comments
 (0)