{"action":"created","issue":{"url":"https://api.github.com/repos/nicolas-van/ring.js/issues/17","labels_url":"https://api.github.com/repos/nicolas-van/ring.js/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/nicolas-van/ring.js/issues/17/comments","events_url":"https://api.github.com/repos/nicolas-van/ring.js/issues/17/events","html_url":"https://github.com/nicolas-van/ring.js/issues/17","id":113999209,"number":17,"title":"Recommended to increase the storage constructor parameters","user":{"login":"zhouxianjun","id":5254523,"avatar_url":"https://avatars.githubusercontent.com/u/5254523?v=3","gravatar_id":"","url":"https://api.github.com/users/zhouxianjun","html_url":"https://github.com/zhouxianjun","followers_url":"https://api.github.com/users/zhouxianjun/followers","following_url":"https://api.github.com/users/zhouxianjun/following{/other_user}","gists_url":"https://api.github.com/users/zhouxianjun/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouxianjun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouxianjun/subscriptions","organizations_url":"https://api.github.com/users/zhouxianjun/orgs","repos_url":"https://api.github.com/users/zhouxianjun/repos","events_url":"https://api.github.com/users/zhouxianjun/events{/privacy}","received_events_url":"https://api.github.com/users/zhouxianjun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-29T08:05:04Z","updated_at":"2015-10-29T08:43:03Z","closed_at":null,"body":"changed：\r\n\r\nvar claz = function Instance() {\r\n            this.$super = null;\r\n            this.args = arguments; //save constructor parameters\r\n            this.__ringConstructor__.apply(this, arguments);\r\n        };"},"comment":{"url":"https://api.github.com/repos/nicolas-van/ring.js/issues/comments/152113525","html_url":"https://github.com/nicolas-van/ring.js/issues/17#issuecomment-152113525","issue_url":"https://api.github.com/repos/nicolas-van/ring.js/issues/17","id":152113525,"user":{"login":"zhouxianjun","id":5254523,"avatar_url":"https://avatars.githubusercontent.com/u/5254523?v=3","gravatar_id":"","url":"https://api.github.com/users/zhouxianjun","html_url":"https://github.com/zhouxianjun","followers_url":"https://api.github.com/users/zhouxianjun/followers","following_url":"https://api.github.com/users/zhouxianjun/following{/other_user}","gists_url":"https://api.github.com/users/zhouxianjun/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouxianjun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouxianjun/subscriptions","organizations_url":"https://api.github.com/users/zhouxianjun/orgs","repos_url":"https://api.github.com/users/zhouxianjun/repos","events_url":"https://api.github.com/users/zhouxianjun/events{/privacy}","received_events_url":"https://api.github.com/users/zhouxianjun/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T08:43:03Z","updated_at":"2015-10-29T08:43:03Z","body":"Hello nicolas-van\r\nFor example: re - instance the current object\r\nvar A = ring.create({\r\n    constructor: function(name){\r\n        this.name = name;\r\n    }\r\n});\r\nvar tmpA = new A('Gary');\r\nvar tmp = tmpA; // or clone\r\ntmpA.test = 'changed';\r\nconsole.log(tmp.test); //print changed\r\n\r\nvar tmp = new tmpA.constructor(tmpA.args.callee);\r\nconsole.log(tmp.test); //print undefined"}}