From 8971972a280b2542e1f1fc1b0ad8f15ffdcd6cc4 Mon Sep 17 00:00:00 2001 From: Adam Sowinski Date: Mon, 21 Oct 2013 00:26:27 +0100 Subject: [PATCH] Fixed a bug where currentCursor variable was assigned a CPNumber instance instead of CPCursor instance. --- AppKit/CPCursor.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPCursor.j b/AppKit/CPCursor.j index 9987d9cae..887f669ac 100755 --- a/AppKit/CPCursor.j +++ b/AppKit/CPCursor.j @@ -116,7 +116,8 @@ var currentCursor = nil, - (void)push { - currentCursor = cursorStack.push(self); + cursorStack.push(self); + currentCursor = cursorStack[cursorStack.length - 1]; } - (void)set