X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/73e8795a3d19b7221f34353799d39808d57a4d05..b33289a3a89915e0418ffe66b34e540aa3ab75ba:/src/smartxml/core.js?ds=inline diff --git a/src/smartxml/core.js b/src/smartxml/core.js index dd472ce..40fd9b8 100644 --- a/src/smartxml/core.js +++ b/src/smartxml/core.js @@ -1,10 +1,11 @@ -define([ - -], function() { +define(function(require) { 'use strict'; /* globals Node */ -var TEXT_NODE = Node.TEXT_NODE; + +var _ = require('libs/underscore'), + TEXT_NODE = Node.TEXT_NODE; + var INSERTION = function(implementation) { var toret = function(node) { @@ -186,7 +187,6 @@ var elementNodeTransformations = { var textNodeTransformations = { setText: function(text) { - //console.log('smartxml: ' + text); this.nativeNode.data = text; this.triggerTextChangeEvent(); }, @@ -347,7 +347,7 @@ var documentTransformations = { insertion.ofNode.triggerChangeEvent('nodeAdded'); return insertion.ofNode; } -} +}; return { document: {