Permalink
Browse files

* liveui: Fixed Model.get (again) (closes #51)

* Push to 2.3.2
  • Loading branch information...
1 parent 8dc0791 commit ee338e206105cbd1cd2033e9fbdb7f47ddc8bfe9 @bminer committed Jul 10, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 package.json
  2. +3 −1 plugins/liveui.js
View
@@ -13,7 +13,7 @@
"jade",
"haml"
],
- "version": "2.3.1",
+ "version": "2.3.2",
"homepage": "https://github.com/bminer/node-blade",
"repository": {
"type": "git",
View
@@ -134,8 +134,10 @@
//the current Context
Model.prototype.get = function(key) {
var self = this;
+ if(!self._keyDeps[key])
+ self.add(key);
var context = Context.current;
- if(context && self._keyDeps[key] && !self._keyDeps[key][context.id]) {
+ if(context && !self._keyDeps[key][context.id]) {
//Store the current context and setup invalidation callback
self._keyDeps[key][context.id] = context;
context.on_invalidate(function() {

0 comments on commit ee338e2

Please sign in to comment.