只读模式
group, 分享
评论更多问题
博客标签总是存在一个
This commit is contained in:
lealife
2015-06-15 18:01:48 +08:00
parent 7e458bb433
commit 6987a38820
1453 changed files with 114561 additions and 91536 deletions

24
public/tinymce/classes/util/JSON.js Normal file → Executable file
View File

@ -55,23 +55,23 @@ define("tinymce/util/JSON", [], function() {
if (t == 'object') {
if (o.hasOwnProperty && Object.prototype.toString.call(o) === '[object Array]') {
for (i=0, v = '['; i<o.length; i++) {
v += (i > 0 ? ',' : '') + serialize(o[i], quote);
}
return v + ']';
for (i = 0, v = '['; i < o.length; i++) {
v += (i > 0 ? ',' : '') + serialize(o[i], quote);
}
v = '{';
return v + ']';
}
for (name in o) {
if (o.hasOwnProperty(name)) {
v += typeof o[name] != 'function' ? (v.length > 1 ? ',' + quote : quote) + name +
quote +':' + serialize(o[name], quote) : '';
}
v = '{';
for (name in o) {
if (o.hasOwnProperty(name)) {
v += typeof o[name] != 'function' ? (v.length > 1 ? ',' + quote : quote) + name +
quote + ':' + serialize(o[name], quote) : '';
}
}
return v + '}';
return v + '}';
}
return '' + o;