Skip to content

issue #1108: add two method cleanScript and restart #2466

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

Merged
merged 3 commits into from
Nov 25, 2014

Conversation

jianglong0156
Copy link

issue #1108: add two method cleanScript and restart

@jianglong0156
Copy link
Author

these mehtod used in jsb, so it's just the space mehtod

@@ -2037,6 +2048,13 @@ cc.game = /** @lends cc.game# */{
/**
* Run game.
*/
restart: function () {
window.location.href = window.location.href;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not a good solution, restart the current game, not refresh the page

dingpinglv added a commit that referenced this pull request Nov 25, 2014
issue #1108: add two method cleanScript and restart
@dingpinglv dingpinglv merged commit b751ec8 into cocos2d:develop Nov 25, 2014
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.

3 participants