diff --git a/src/browser/DomElement.js b/src/dom/DomElement.js similarity index 100% rename from src/browser/DomElement.js rename to src/dom/DomElement.js diff --git a/src/browser/DomEvent.js b/src/dom/DomEvent.js similarity index 98% rename from src/browser/DomEvent.js rename to src/dom/DomEvent.js index f2877636..751f8b50 100644 --- a/src/browser/DomEvent.js +++ b/src/dom/DomEvent.js @@ -17,6 +17,7 @@ */ var DomEvent = { add: function(el, events) { + console.log('add', el.nodeName, events); for (var type in events) { var func = events[type]; if (el.addEventListener) { diff --git a/src/paper.js b/src/paper.js index 27bed92e..66a94783 100644 --- a/src/paper.js +++ b/src/paper.js @@ -92,10 +92,8 @@ var paper = new function() { /*#*/ include('style/GradientStop.js'); /*#*/ include('style/Style.js'); -/*#*/ if (options.browser) { -/*#*/ include('browser/DomElement.js'); -/*#*/ include('browser/DomEvent.js'); -/*#*/ } // options.browser +/*#*/ include('dom/DomElement.js'); +/*#*/ include('dom/DomEvent.js'); /*#*/ include('ui/View.js'); /*#*/ include('ui/CanvasView.js');