@smartface/smartface.updater
Advanced tools
Comparing version 6.4.5 to 6.4.6
@@ -9,3 +9,13 @@ define(function(require, exports, module) { | ||
var idMap = {}; | ||
var idMap = (function() { | ||
var _idMap = {}; | ||
return { | ||
get: function(key) { | ||
return _idMap[key]; | ||
}, | ||
set: function(key, value) { | ||
_idMap[key] = value; | ||
} | ||
}; | ||
})(); | ||
@@ -87,7 +97,11 @@ var listViewDefault = require("text!./listViewDefault.json"); | ||
var newID = guid(); | ||
component.id = idMap[oldID] = newID; | ||
component.id = newID; | ||
idMap.set(oldID, newID); | ||
}); | ||
components.forEach(function(c) { | ||
if (c.source && c.source.id) { | ||
c.source.id = idMap[c.source.id]; | ||
// TODO: Remove | ||
if (!idMap.get(c.source.id)) | ||
debugger; | ||
c.source.id = idMap.get(c.source.id); | ||
} | ||
@@ -94,0 +108,0 @@ }); |
@@ -9,3 +9,2 @@ define(function(require, exports, module) { | ||
var path = require("path"); | ||
var versions = require("./versions"); | ||
@@ -83,2 +82,3 @@ /** | ||
var self = this; | ||
var versions = self.versions; | ||
var pagePath = path.join(PGX_PATH, pageName); | ||
@@ -144,3 +144,3 @@ self.fs.readFile(pagePath, function(err, content) { | ||
function AutoUpdatePages(modules, editorVersion) { | ||
function AutoUpdatePages(modules, versions, editorVersion) { | ||
this.fs = modules.fs; | ||
@@ -150,2 +150,3 @@ this.tabManager = modules.tabManager; | ||
this.dotObject = modules.dotObject; | ||
this.versions = versions; | ||
this.editorVersion = editorVersion; | ||
@@ -152,0 +153,0 @@ } |
{ | ||
"name": "@smartface/smartface.updater", | ||
"version": "6.4.5", | ||
"version": "6.4.6", | ||
"description": "SmartfaceCloud Updater plugin", | ||
@@ -5,0 +5,0 @@ "main": "smf.updater.js", |
@@ -50,3 +50,3 @@ define(function(require, exports, module) { | ||
tabManager: tabManager | ||
}, editorVersion); | ||
}, versions, editorVersion); | ||
@@ -53,0 +53,0 @@ autoUpdatePages.isUpdateRequired(function(shouldUpdate) { |
33897
940