Skip to content

Commit b80b7f2

Browse files
committed
update compiled dist
1 parent 513ec85 commit b80b7f2

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

dist/yaml.debug.js

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/yaml.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,16 +1535,20 @@ Utils = (function() {
15351535
};
15361536

15371537
Utils.isEmpty = function(value) {
1538+
return !value || value === '' || value === '0' || (value instanceof Array && value.length === 0) || this.isEmptyObject(value);
1539+
};
1540+
1541+
Utils.isEmptyObject = function(value) {
15381542
var k;
1539-
return !value || value === '' || value === '0' || (value instanceof Array && value.length === 0) || (value instanceof Object && ((function() {
1543+
return value instanceof Object && ((function() {
15401544
var results;
15411545
results = [];
15421546
for (k in value) {
15431547
if (!hasProp.call(value, k)) continue;
15441548
results.push(k);
15451549
}
15461550
return results;
1547-
})()).length === 0);
1551+
})()).length === 0;
15481552
};
15491553

15501554
Utils.subStrCount = function(string, subString, start, length) {

0 commit comments

Comments
 (0)