Kaynağa Gözat
Merge pull request #15352 from hrwX/add_writable
fix: value associated with property may be changed
version-14
mergify[bot]
3 yıl önce
committed by
GitHub
ebeveyn
işleme
0b50f2aeb4
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile
2 ekleme ve
1 silme
-
frappe/public/js/frappe/utils/utils.js
|
|
@@ -28,7 +28,8 @@ Object.defineProperty(Object.prototype, "setDefault", { |
|
|
|
value: function(key, default_value) { |
|
|
|
if (!(key in this)) this[key] = default_value; |
|
|
|
return this[key]; |
|
|
|
} |
|
|
|
}, |
|
|
|
writable: true |
|
|
|
}); |
|
|
|
|
|
|
|
// Pluralize |
|
|
|