Skip to content

Commit

Permalink
API update
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Elliott committed Feb 10, 2013
1 parent 12c188f commit 427c83e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ But that's boring. Let's see what else is on tap:
```
// Some more privileged methods, with some private data.
// Use stampit.extend() to make this feel declarative:
var availability = stampit({}, {}, function () {
var availability = stampit().enclose(function () {
var isOpen = false; // private
return stampit.extend(this, {
Expand Down Expand Up @@ -111,7 +111,7 @@ var membership = stampit({
});
// Let's set some defaults:
var defaults = stampit({}, {
var defaults = stampit().state({
name: 'The Saloon',
specials: 'Whisky, Gin, Tequila'
});
Expand Down

0 comments on commit 427c83e

Please sign in to comment.