From 3e800ec7c8e52610a82805eee708696d1887a7a7 Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Wed, 17 Dec 2014 12:40:24 -0500 Subject: [PATCH] Fixing type for DOM Elements This commit fixes the type for DOM Elements in CPTextView.j --- AppKit/CPTextView/CPTextView.j | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 36fc1637a..f1e8c9a29 100755 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -111,7 +111,8 @@ var kDelegateRespondsTo_textShouldBeginEditing BOOL _scrollingDownward; - var _caretDOM; + DOMElement _DOMElement; + DOMElement _caretDOM; int _stickyXLocation; CPArray _selectionSpans; @@ -529,7 +530,7 @@ var kDelegateRespondsTo_textShouldBeginEditing style.whiteSpace = "pre"; style.backgroundColor = "black"; _caretDOM.style.width = "1px"; - self._DOMElement.appendChild(_caretDOM); + _DOMElement.appendChild(_caretDOM); } _caretDOM.style.left = (aRect.origin.x) + "px";