SGNode.onExit should not be null

This commit is contained in:
Jare Guo
2016-01-05 10:35:37 +08:00
parent a66ca32af5
commit 2fbe33bfb9
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ var AssetLibrary = {
* @param {Boolean} options.writeMainCache - Default is true. If true, the result will cache to AssetLibrary, and MUST be unload by user manually.
* @param {Asset} options.existingAsset - load to existing asset, this argument is only available in editor
* @param {Boolean} options.recordAssets - Default is false. If true, tracking statistics associated with the assets which needs to preload(All the assets contains "urls" but dont have "_rawFiles")
* @param {deserialize.Details} options.deserializeInfo - specified a DeserializeInfo object if you want
* @param {deserialize.Details} options.deserializeInfo - specified a DeserializeInfo object if you want,
* this parameter is only available in editor.
* @private
*/
loadAsset: function (uuid, callback, options) {
+2 -2
View File
@@ -820,8 +820,8 @@ var ParticleSystem = cc.Class({
self.node.destroy();
};
}
else {
sgNode.onExit = null;
else if (sgNode.hasOwnProperty('onExit')) {
sgNode.onExit = _ccsg.Node.prototype.onExit;
}
}
}