X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0214643f72c6aaa8e85eaba2ad27f2ca03ca6401..969f365b3ee6d3cb54f98b23e1ebb97df9f801dd:/modules/metadataEditor/transformations.js?ds=inline diff --git a/modules/metadataEditor/transformations.js b/modules/metadataEditor/transformations.js index a6fea3f..ba7092e 100644 --- a/modules/metadataEditor/transformations.js +++ b/modules/metadataEditor/transformations.js @@ -1,12 +1,14 @@ define(['libs/jquery-1.9.1.min'], function($) { + 'use strict'; + return { getMetadata: function(xml) { var toret = {}; $(xml).find('metadata').children().each(function() { var node = $(this); toret[this.nodeName.split(':')[1].toLowerCase()] = node.text(); - }) + }); return toret; }, getXML: function(metadata) { @@ -17,6 +19,6 @@ define(['libs/jquery-1.9.1.min'], function($) { meta.append('\n'); return vkbeautify.xml(meta.html()); } - } + }; }); \ No newline at end of file