Skip to content

Commit b751ec8

Browse files
committed
Merge pull request #2466 from jianglong0156/restartGame
issue #1108: add two method cleanScript and restart
2 parents a98aedc + c666dc4 commit b751ec8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CCBoot.js

+18
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,17 @@ cc._initSys = function (config, CONFIG_KEY) {
16741674
// N/A in cocos2d-html5
16751675
};
16761676

1677+
/**
1678+
* cleanScript the singal JS file
1679+
* @memberof cc.sys
1680+
* @name cleanScript
1681+
* @param {String} jsfile
1682+
* @function
1683+
*/
1684+
sys.cleanScript = function (jsfile) {
1685+
// N/A in cocos2d-html5
1686+
};
1687+
16771688
/**
16781689
* Dump system informations
16791690
* @memberof cc.sys
@@ -2035,6 +2046,13 @@ cc.game = /** @lends cc.game# */{
20352046
self._paused = false;
20362047
},
20372048

2049+
/**
2050+
* Run game.
2051+
*/
2052+
restart: function () {
2053+
//window.location.href = window.location.href;
2054+
},
2055+
20382056
/**
20392057
* Run game.
20402058
*/

0 commit comments

Comments
 (0)