@@ -160,38 +160,6 @@ Item {
160 value: ApplicationManager
160 value: ApplicationManager
163−function serialize(object, maxDepth) {
164− function _processObject(object, maxDepth, level) {
165− var output = Array()
167− if (maxDepth == undefined) {
170− if (level == undefined) {
173− var padding = Array(level + 1).join(pad)
175− output.push((Array.isArray(object) ? "[" : "{"))
176− var fields = Array()
177− for (var key in object) {
178− var keyText = Array.isArray(object) ? "" : ("\"" + key + "\": ")
179− if (typeof (object[key]) == "object" && key != "parent" && maxDepth != 0) {
180− var res = _processObject(object[key], maxDepth > 0 ? maxDepth - 1 : -1, level + 1)
181− fields.push(padding + pad + keyText + res)
183− fields.push(padding + pad + keyText + "\"" + object[key] + "\"")
186− output.push(fields.join(",\n"))
187− output.push(padding + (Array.isArray(object) ? "]" : "}"))
189− return output.join("\n")
192− return _processObject(object, maxDepth)
195 Component.onCompleted: {
163 Component.onCompleted: {
196 Theme.name = "Ubuntu.Components.Themes.SuruGradient"
164 Theme.name = "Ubuntu.Components.Themes.SuruGradient"
197 if (ApplicationManager.count > 0) {
165 if (ApplicationManager.count > 0) {