From 91a429ea772456d5288c173dc9c10d72a95604a0 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Fri, 30 May 2014 19:19:15 +0200 Subject: [PATCH] another try --- AppKit/CPTextView/CPTextView.j | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index dec9be851..07a2bdcb1 100755 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -297,7 +297,7 @@ var kDelegateRespondsTo_textShouldBeginEditing BOOL _drawCaret; CPTimer _caretTimer; CPTimer _scollingTimer; - CPGect _caretRect; + CPRect _caretRect; CPFont _font; CPColor _textColor; @@ -322,9 +322,9 @@ var kDelegateRespondsTo_textShouldBeginEditing - (id)initWithFrame:(CGRect)aFrame textContainer:(CPTextContainer)aContainer { -#if PLATFORM(DOM) self = [super initWithFrame:aFrame]; +#if PLATFORM(DOM) if (self) { self._DOMElement.style.cursor = "text"; @@ -363,9 +363,8 @@ var kDelegateRespondsTo_textShouldBeginEditing } [self registerForDraggedTypes:[CPColorDragType]]; -#else - self=[self init]; #endif + return self; }