-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) {
var textNodeTransformations = {
setText: function(text) {
- //console.log('smartxml: ' + text);
this.nativeNode.data = text;
this.triggerTextChangeEvent();
},
insertion.ofNode.triggerChangeEvent('nodeAdded');
return insertion.ofNode;
}
-}
+};
return {
document: {