Remove compatibility code

This commit is contained in:
pandamicro
2018-05-24 19:13:30 +08:00
parent efaf0c5d4d
commit c498b8092e
-5
View File
@@ -188,11 +188,6 @@ var properties = {
return this._file;
},
set: function (value, force) {
if (typeof value === 'string') {
// backward compatibility since 1.10
cc.errorID(8401, 'cc.ParticleSystem', 'cc.ParticleAsset', 'ParticleAsset', 'cc.ParticleAsset', 'particle');
value = { nativeUrl: value };
}
if (this._file !== value || (CC_EDITOR && force)) {
this._file = value;
if (value) {