mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 977016 - PlacesUtils.jsm should use Cu.cloneInto() rather than JSON.stringify/parse r=mak
This commit is contained in:
parent
ceb73476f1
commit
11218793e0
@ -1953,7 +1953,7 @@ TransactionItemCache.prototype = {
|
||||
get index()
|
||||
this._index != null ? this._index : PlacesUtils.bookmarks.DEFAULT_INDEX,
|
||||
set annotations(v)
|
||||
this._annotations = Array.isArray(v) ? JSON.parse(JSON.stringify(v)) : null,
|
||||
this._annotations = Array.isArray(v) ? Cu.cloneInto(v, {}) : null,
|
||||
get annotations()
|
||||
this._annotations || null,
|
||||
set tags(v)
|
||||
|
Loading…
Reference in New Issue
Block a user