Skip to content

Commit

Permalink
Fix #688: _StoreMixin: account for potential of null store
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth G. Franqueiro committed Aug 5, 2013
1 parent 27954ef commit d415236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This document outlines changes since 0.3.0. For older changelogs, see the

* Updated the README and fixed the redirect in `test/intern/runTests.html` to
reference the correct path where intern-geezer installs to as of Intern 1.2.
* Fixed a regression in `_StoreMixin` (affecting `OnDemandList` and `Pagination`)
where setting `store` to `null` would cause an error. (#688, thanks kilink)

# 0.3.9

Expand Down
2 changes: 1 addition & 1 deletion _StoreMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function(kernel, declare, lang, Deferred, listen, aspect, put){
this._notifyHandle.remove();
delete this._notifyHandle;
}
if(typeof store.notify === "function"){
if(store && typeof store.notify === "function"){
this._notifyHandle = aspect.after(store, "notify",
lang.hitch(this, "_onNotify"), true);
}
Expand Down

0 comments on commit d415236

Please sign in to comment.