Use JavaScript logical NOT when parsing time
The jQuery isEmptyObject is not true on empty string. issue11189 review356351002 (grafted from 1a7b8019712f02416507daa25761772eba125490) --HG-- branch : 6.0
This commit is contained in:
1 parent
45d7a96a90
commit
2190295058
1 file changed
+1
-1
+1
-1
@@ -245,7 +245,7 @@
|
||||
};
|
||||
|
||||
Sao.common.parse_time = function(format, value) {
|
||||
if (jQuery.isEmptyObject(value)) {
|
||||
if (!value) {
|
||||
return null;
|
||||
}
|
||||
var getNumber = function(pattern) {
|
||||
|
||||
Reference in new issue
Block a user