Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme v2 0 #83

Merged
merged 14 commits into from
May 31, 2015
Merged

Readme v2 0 #83

merged 14 commits into from
May 31, 2015

Conversation

koresar
Copy link
Member

@koresar koresar commented May 28, 2015

@ericelliott, please review.

The bullet list of changes can be found in #71.

koresar and others added 9 commits May 28, 2015 00:06
Reformat image alignment. Removed "Known Issues" as it forms the incorrect thinking that stampit has problems. Moreover, if someone would need to browse issues he most likely knows what menu item to click on the right. :)
Rename the rest of 'state' and 'enclose' to 'refs' and 'init'.
Added v2 breaking changes description.
added "what is a stamp?" section
Removed `settings` parameter from `init()` function. There is no such thing AFAIK. :)
var b = stampit().enclose(function () {
var a = 'b';
var b = stampit().init(function () {
var priv = 'b';
this.getB = function () {
return a;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? shouldn't it be return priv ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Spot on! Let me correct that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Fixing typo in a sample code.

Stampit mimics the behavior of `_.extend()`, `$.extend()` when you pass multiple objects into one of the prototype methods. In other words, it will copy all of the properties from those objects to the `.methods`, `.state`, or `.enclose` prototype for the stamp. The properties from later arguments in the list will override the same named properties of previously passed in objects.
Stampit mimics the behavior of `_.extend()`, `$.extend()` when you pass multiple objects into one of the prototype methods.
In other words, it will copy all of the properties from those objects to the `.methods`, `.refs`, or `.init` prototype for the stamp.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention .props here and remind the user that it will merge?

Mention `.props()` more. Fix mistakes of all sorts.

[Known Issues](https://github.com/dilvie/stampit/issues?state=open)
There is a slight chance these changes affect your current codebase. If so, we would recommend you to update to v2 becuase it is more powerful. See [advances examples](https://github.com/ericelliott/stampit/blob/master/EXAMPLES.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean "advanced examples"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Minor updates to multiple places.
Describing new `stampit(options)` API. Fix examples.
Do not use word "prototype" as too confusing in JS world. Use "stamp" instead.
Plenty minor changes.
@koresar
Copy link
Member Author

koresar commented May 31, 2015

Ready to be merged to v2_0 I think. Check the latest changes please.


Take n objects and add them to the state prototype. Changes `this` object.
* @return {Object} stamp The stamp in question (`this`).
It has alias - `stamp.state()`. Deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has an alias? =)

ericelliott pushed a commit that referenced this pull request May 31, 2015
@ericelliott ericelliott merged commit f21ea73 into v2_0 May 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants