refactoring: removing DocumentElement.bound
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 3 Apr 2014 08:46:47 +0000 (10:46 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 6 May 2014 09:37:47 +0000 (11:37 +0200)
src/editor/modules/documentCanvas/canvas/documentElement.js

index ef3a1ee..1da7b3e 100644 (file)
@@ -5,7 +5,7 @@ define([
 ], function($, _, utils) {
     
 'use strict';
-/* global Node:false, document:false */
+/* global Node:false */
 
 // DocumentElement represents a text or an element node from WLXML document rendered inside Canvas
 var DocumentElement = function(wlxmlNode, canvas) {
@@ -26,9 +26,6 @@ $.extend(DocumentElement.prototype, {
     refresh: function() {
         // noop
     },
-    bound: function() {
-        return $.contains(document.documentElement, this.dom()[0]);
-    },
     dom: function() {
         return this.$element;
     },