From 39625b37b8cbd892677f7e8bf3ab5f8b065a1fd0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 3 Apr 2014 10:46:47 +0200 Subject: [PATCH] refactoring: removing DocumentElement.bound --- src/editor/modules/documentCanvas/canvas/documentElement.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/editor/modules/documentCanvas/canvas/documentElement.js b/src/editor/modules/documentCanvas/canvas/documentElement.js index ef3a1ee..1da7b3e 100644 --- a/src/editor/modules/documentCanvas/canvas/documentElement.js +++ b/src/editor/modules/documentCanvas/canvas/documentElement.js @@ -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; }, -- 2.20.1