fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: removing unused code
[fnpeditor.git]
/
src
/
smartxml
/
core.js
diff --git
a/src/smartxml/core.js
b/src/smartxml/core.js
index
dd472ce
..
40fd9b8
100644
(file)
--- a/
src/smartxml/core.js
+++ b/
src/smartxml/core.js
@@
-1,10
+1,11
@@
-define([
-
-], function() {
+define(function(require) {
'use strict';
/* globals Node */
'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) {
var INSERTION = function(implementation) {
var toret = function(node) {
@@
-186,7
+187,6
@@
var elementNodeTransformations = {
var textNodeTransformations = {
setText: function(text) {
var textNodeTransformations = {
setText: function(text) {
- //console.log('smartxml: ' + text);
this.nativeNode.data = text;
this.triggerTextChangeEvent();
},
this.nativeNode.data = text;
this.triggerTextChangeEvent();
},
@@
-347,7
+347,7
@@
var documentTransformations = {
insertion.ofNode.triggerChangeEvent('nodeAdded');
return insertion.ofNode;
}
insertion.ofNode.triggerChangeEvent('nodeAdded');
return insertion.ofNode;
}
-}
+}
;
return {
document: {
return {
document: {