зеркало из https://github.com/mozilla/gecko-dev.git
Bug 555015 - JavaScript strict warning: bookmarks.js: undeclared variable record [r=Mardak]
Just make sure the record variable is declared before using it.
This commit is contained in:
Родитель
e0f3625f3c
Коммит
8a1c83fe01
|
@ -706,6 +706,7 @@ BookmarksStore.prototype = {
|
||||||
// Create a record starting from the weave id (places guid)
|
// Create a record starting from the weave id (places guid)
|
||||||
createRecord: function createRecord(guid) {
|
createRecord: function createRecord(guid) {
|
||||||
let placeId = idForGUID(guid);
|
let placeId = idForGUID(guid);
|
||||||
|
let record;
|
||||||
if (placeId <= 0) { // deleted item
|
if (placeId <= 0) { // deleted item
|
||||||
record = new PlacesItem();
|
record = new PlacesItem();
|
||||||
record.deleted = true;
|
record.deleted = true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче