{"action":"created","comment":{"url":"https://api.github.com/repos/stampit-org/stampit/pulls/comments/32906656","id":32906656,"diff_hunk":"@@ -0,0 +1,37 @@\n+const stampit = require('../src/stampit');\n+\n+\n+const Stamp = stampit();\n+Stamp.fixed.methods.data = 1; // fixed.methods is the prototype for each new object.\n+const instance = Stamp(); // Creating object, it's prototype is set to fixed.methods. It has property 'data'.\n+console.log(instance.data); // 1\n+const instance2 = Stamp({ data: 2 }); // Creating second object. It'll have property 'data' too.\n+console.log(instance2.data); // 2\n+delete instance2.data; // Deleting 'data' assigned to the instance.\n+console.log(instance2.data); // 1 <- The .prototype.data is still there.\n+\n+\n+// -----\n+\n+const UndeletableDefaults = stampit.static({","path":"advanced-examples/hacking.js","position":16,"original_position":16,"commit_id":"ce9b46e3d54ed4e63a78d3e3c4c3c3fafe1d6658","original_commit_id":"ce9b46e3d54ed4e63a78d3e3c4c3c3fafe1d6658","user":{"login":"ericelliott","id":364727,"avatar_url":"https://avatars.githubusercontent.com/u/364727?v=3","gravatar_id":"","url":"https://api.github.com/users/ericelliott","html_url":"https://github.com/ericelliott","followers_url":"https://api.github.com/users/ericelliott/followers","following_url":"https://api.github.com/users/ericelliott/following{/other_user}","gists_url":"https://api.github.com/users/ericelliott/gists{/gist_id}","starred_url":"https://api.github.com/users/ericelliott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericelliott/subscriptions","organizations_url":"https://api.github.com/users/ericelliott/orgs","repos_url":"https://api.github.com/users/ericelliott/repos","events_url":"https://api.github.com/users/ericelliott/events{/privacy}","received_events_url":"https://api.github.com/users/ericelliott/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-06-22T05:51:35Z","updated_at":"2015-06-22T05:51:35Z","html_url":"https://github.com/stampit-org/stampit/pull/109#discussion_r32906656","pull_request_url":"https://api.github.com/repos/stampit-org/stampit/pulls/109","_links":{"self":{"href":"https://api.github.com/repos/stampit-org/stampit/pulls/comments/32906656"},"html":{"href":"https://github.com/stampit-org/stampit/pull/109#discussion_r32906656"},"pull_request":{"href":"https://api.github.com/repos/stampit-org/stampit/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/stampit-org/stampit/pulls/109","id":37640076,"html_url":"https://github.com/stampit-org/stampit/pull/109","diff_url":"https://github.com/stampit-org/stampit/pull/109.diff","patch_url":"https://github.com/stampit-org/stampit/pull/109.patch","issue_url":"https://api.github.com/repos/stampit-org/stampit/issues/109","number":109,"state":"open","locked":false,"title":"Advanced examples","user":{"login":"koresar","id":1622575,"avatar_url":"https://avatars.githubusercontent.com/u/1622575?v=3","gravatar_id":"","url":"https://api.github.com/users/koresar","html_url":"https://github.com/koresar","followers_url":"https://api.github.com/users/koresar/followers","following_url":"https://api.github.com/users/koresar/following{/other_user}","gists_url":"https://api.github.com/users/koresar/gists{/gist_id}","starred_url":"https://api.github.com/users/koresar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koresar/subscriptions","organizations_url":"https://api.github.com/users/koresar/orgs","repos_url":"https://api.github.com/users/koresar/repos","events_url":"https://api.github.com/users/koresar/events{/privacy}","received_events_url":"https://api.github.com/users/koresar/received_events","type":"User","site_admin":false},"body":"Plentiful of tricks and tips. Please, correct my English.\r\nAlso, if something is unclear, please tell me! I want to make sure the text is easy to understand to as many people as possible.\r\nThanks!\r\n\r\nP.S. What do you think if we create a new repo (and npm module?) with \"cool stamps\" like those in the examples? (Cloneable, EventEmittable, ForcedDefaults, etc.)","created_at":"2015-06-14T11:30:55Z","updated_at":"2015-06-22T05:51:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f54e2e39c56cbd5c8f4468abbf7a8342e0b9fb44","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stampit-org/stampit/pulls/109/commits","review_comments_url":"https://api.github.com/repos/stampit-org/stampit/pulls/109/comments","review_comment_url":"https://api.github.com/repos/stampit-org/stampit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stampit-org/stampit/issues/109/comments","statuses_url":"https://api.github.com/repos/stampit-org/stampit/statuses/ce9b46e3d54ed4e63a78d3e3c4c3c3fafe1d6658","head":{"label":"stampit-org:advanced_examples","ref":"advanced_examples","sha":"ce9b46e3d54ed4e63a78d3e3c4c3c3fafe1d6658","user":{"login":"stampit-org","id":12635305,"avatar_url":"https://avatars.githubusercontent.com/u/12635305?v=3","gravatar_id":"","url":"https://api.github.com/users/stampit-org","html_url":"https://github.com/stampit-org","followers_url":"https://api.github.com/users/stampit-org/followers","following_url":"https://api.github.com/users/stampit-org/following{/other_user}","gists_url":"https://api.github.com/users/stampit-org/gists{/gist_id}","starred_url":"https://api.github.com/users/stampit-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stampit-org/subscriptions","organizations_url":"https://api.github.com/users/stampit-org/orgs","repos_url":"https://api.github.com/users/stampit-org/repos","events_url":"https://api.github.com/users/stampit-org/events{/privacy}","received_events_url":"https://api.github.com/users/stampit-org/received_events","type":"Organization","site_admin":false},"repo":{"id":8124664,"name":"stampit","full_name":"stampit-org/stampit","owner":{"login":"stampit-org","id":12635305,"avatar_url":"https://avatars.githubusercontent.com/u/12635305?v=3","gravatar_id":"","url":"https://api.github.com/users/stampit-org","html_url":"https://github.com/stampit-org","followers_url":"https://api.github.com/users/stampit-org/followers","following_url":"https://api.github.com/users/stampit-org/following{/other_user}","gists_url":"https://api.github.com/users/stampit-org/gists{/gist_id}","starred_url":"https://api.github.com/users/stampit-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stampit-org/subscriptions","organizations_url":"https://api.github.com/users/stampit-org/orgs","repos_url":"https://api.github.com/users/stampit-org/repos","events_url":"https://api.github.com/users/stampit-org/events{/privacy}","received_events_url":"https://api.github.com/users/stampit-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stampit-org/stampit","description":"OOP is better with stamps: Composable object factories.","fork":false,"url":"https://api.github.com/repos/stampit-org/stampit","forks_url":"https://api.github.com/repos/stampit-org/stampit/forks","keys_url":"https://api.github.com/repos/stampit-org/stampit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stampit-org/stampit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stampit-org/stampit/teams","hooks_url":"https://api.github.com/repos/stampit-org/stampit/hooks","issue_events_url":"https://api.github.com/repos/stampit-org/stampit/issues/events{/number}","events_url":"https://api.github.com/repos/stampit-org/stampit/events","assignees_url":"https://api.github.com/repos/stampit-org/stampit/assignees{/user}","branches_url":"https://api.github.com/repos/stampit-org/stampit/branches{/branch}","tags_url":"https://api.github.com/repos/stampit-org/stampit/tags","blobs_url":"https://api.github.com/repos/stampit-org/stampit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stampit-org/stampit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stampit-org/stampit/git/refs{/sha}","trees_url":"https://api.github.com/repos/stampit-org/stampit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stampit-org/stampit/statuses/{sha}","languages_url":"https://api.github.com/repos/stampit-org/stampit/languages","stargazers_url":"https://api.github.com/repos/stampit-org/stampit/stargazers","contributors_url":"https://api.github.com/repos/stampit-org/stampit/contributors","subscribers_url":"https://api.github.com/repos/stampit-org/stampit/subscribers","subscription_url":"https://api.github.com/repos/stampit-org/stampit/subscription","commits_url":"https://api.github.com/repos/stampit-org/stampit/commits{/sha}","git_commits_url":"https://api.github.com/repos/stampit-org/stampit/git/commits{/sha}","comments_url":"https://api.github.com/repos/stampit-org/stampit/comments{/number}","issue_comment_url":"https://api.github.com/repos/stampit-org/stampit/issues/comments{/number}","contents_url":"https://api.github.com/repos/stampit-org/stampit/contents/{+path}","compare_url":"https://api.github.com/repos/stampit-org/stampit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stampit-org/stampit/merges","archive_url":"https://api.github.com/repos/stampit-org/stampit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stampit-org/stampit/downloads","issues_url":"https://api.github.com/repos/stampit-org/stampit/issues{/number}","pulls_url":"https://api.github.com/repos/stampit-org/stampit/pulls{/number}","milestones_url":"https://api.github.com/repos/stampit-org/stampit/milestones{/number}","notifications_url":"https://api.github.com/repos/stampit-org/stampit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stampit-org/stampit/labels{/name}","releases_url":"https://api.github.com/repos/stampit-org/stampit/releases{/id}","created_at":"2013-02-10T16:20:49Z","updated_at":"2015-06-21T22:50:43Z","pushed_at":"2015-06-22T01:38:23Z","git_url":"git://github.com/stampit-org/stampit.git","ssh_url":"git@github.com:stampit-org/stampit.git","clone_url":"https://github.com/stampit-org/stampit.git","svn_url":"https://github.com/stampit-org/stampit","homepage":"http://pjabook.com","size":1574,"stargazers_count":950,"watchers_count":950,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":23,"forks":46,"open_issues":23,"watchers":950,"default_branch":"master"}},"base":{"label":"stampit-org:master","ref":"master","sha":"4d44e919d5c2abea7dd075ca574d8fb37878c1a3","user":{"login":"stampit-org","id":12635305,"avatar_url":"https://avatars.githubusercontent.com/u/12635305?v=3","gravatar_id":"","url":"https://api.github.com/users/stampit-org","html_url":"https://github.com/stampit-org","followers_url":"https://api.github.com/users/stampit-org/followers","following_url":"https://api.github.com/users/stampit-org/following{/other_user}","gists_url":"https://api.github.com/users/stampit-org/gists{/gist_id}","starred_url":"https://api.github.com/users/stampit-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stampit-org/subscriptions","organizations_url":"https://api.github.com/users/stampit-org/orgs","repos_url":"https://api.github.com/users/stampit-org/repos","events_url":"https://api.github.com/users/stampit-org/events{/privacy}","received_events_url":"https://api.github.com/users/stampit-org/received_events","type":"Organization","site_admin":false},"repo":{"id":8124664,"name":"stampit","full_name":"stampit-org/stampit","owner":{"login":"stampit-org","id":12635305,"avatar_url":"https://avatars.githubusercontent.com/u/12635305?v=3","gravatar_id":"","url":"https://api.github.com/users/stampit-org","html_url":"https://github.com/stampit-org","followers_url":"https://api.github.com/users/stampit-org/followers","following_url":"https://api.github.com/users/stampit-org/following{/other_user}","gists_url":"https://api.github.com/users/stampit-org/gists{/gist_id}","starred_url":"https://api.github.com/users/stampit-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stampit-org/subscriptions","organizations_url":"https://api.github.com/users/stampit-org/orgs","repos_url":"https://api.github.com/users/stampit-org/repos","events_url":"https://api.github.com/users/stampit-org/events{/privacy}","received_events_url":"https://api.github.com/users/stampit-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stampit-org/stampit","description":"OOP is better with stamps: Composable object factories.","fork":false,"url":"https://api.github.com/repos/stampit-org/stampit","forks_url":"https://api.github.com/repos/stampit-org/stampit/forks","keys_url":"https://api.github.com/repos/stampit-org/stampit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stampit-org/stampit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stampit-org/stampit/teams","hooks_url":"https://api.github.com/repos/stampit-org/stampit/hooks","issue_events_url":"https://api.github.com/repos/stampit-org/stampit/issues/events{/number}","events_url":"https://api.github.com/repos/stampit-org/stampit/events","assignees_url":"https://api.github.com/repos/stampit-org/stampit/assignees{/user}","branches_url":"https://api.github.com/repos/stampit-org/stampit/branches{/branch}","tags_url":"https://api.github.com/repos/stampit-org/stampit/tags","blobs_url":"https://api.github.com/repos/stampit-org/stampit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stampit-org/stampit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stampit-org/stampit/git/refs{/sha}","trees_url":"https://api.github.com/repos/stampit-org/stampit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stampit-org/stampit/statuses/{sha}","languages_url":"https://api.github.com/repos/stampit-org/stampit/languages","stargazers_url":"https://api.github.com/repos/stampit-org/stampit/stargazers","contributors_url":"https://api.github.com/repos/stampit-org/stampit/contributors","subscribers_url":"https://api.github.com/repos/stampit-org/stampit/subscribers","subscription_url":"https://api.github.com/repos/stampit-org/stampit/subscription","commits_url":"https://api.github.com/repos/stampit-org/stampit/commits{/sha}","git_commits_url":"https://api.github.com/repos/stampit-org/stampit/git/commits{/sha}","comments_url":"https://api.github.com/repos/stampit-org/stampit/comments{/number}","issue_comment_url":"https://api.github.com/repos/stampit-org/stampit/issues/comments{/number}","contents_url":"https://api.github.com/repos/stampit-org/stampit/contents/{+path}","compare_url":"https://api.github.com/repos/stampit-org/stampit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stampit-org/stampit/merges","archive_url":"https://api.github.com/repos/stampit-org/stampit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stampit-org/stampit/downloads","issues_url":"https://api.github.com/repos/stampit-org/stampit/issues{/number}","pulls_url":"https://api.github.com/repos/stampit-org/stampit/pulls{/number}","milestones_url":"https://api.github.com/repos/stampit-org/stampit/milestones{/number}","notifications_url":"https://api.github.com/repos/stampit-org/stampit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stampit-org/stampit/labels{/name}","releases_url":"https://api.github.com/repos/stampit-org/stampit/releases{/id}","created_at":"2013-02-10T16:20:49Z","updated_at":"2015-06-21T22:50:43Z","pushed_at":"2015-06-22T01:38:23Z","git_url":"git://github.com/stampit-org/stampit.git","ssh_url":"git@github.com:stampit-org/stampit.git","clone_url":"https://github.com/stampit-org/stampit.git","svn_url":"https://github.com/stampit-org/stampit","homepage":"http://pjabook.com","size":1574,"stargazers_count":950,"watchers_count":950,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":23,"forks":46,"open_issues":23,"watchers":950,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stampit-org/stampit/pulls/109"},"html":{"href":"https://github.com/stampit-org/stampit/pull/109"},"issue":{"href":"https://api.github.com/repos/stampit-org/stampit/issues/109"},"comments":{"href":"https://api.github.com/repos/stampit-org/stampit/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/stampit-org/stampit/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/stampit-org/stampit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stampit-org/stampit/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/stampit-org/stampit/statuses/ce9b46e3d54ed4e63a78d3e3c4c3c3fafe1d6658"}}}}