Skip to content

Commit 4a1a08f

Browse files
committed
use null instead of NoPrototype
1 parent 5fa728d commit 4a1a08f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/rpg_core/JsonEx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ JsonEx._decode = function(value, circular, registry) {
173173
if (type === '[object Object]' || type === '[object Array]') {
174174
registry[value['@c']] = value;
175175

176-
if (value['@'] === 'NoPrototype') {
176+
if (value['@'] === null) {
177177
value = this._resetPrototype(value, null);
178178
} else if (value['@']) {
179179
var constructor = window[value['@']];
@@ -209,7 +209,7 @@ JsonEx._decode = function(value, circular, registry) {
209209
*/
210210
JsonEx._getConstructorName = function(value) {
211211
if (!value.constructor) {
212-
return 'NoPrototype';
212+
return null;
213213
}
214214
var name = value.constructor.name;
215215
if (name === undefined) {

0 commit comments

Comments
 (0)