From 50e5fa2c8ec68e40c2047901bba7d89608d121d2 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Mon, 28 Feb 2011 23:57:51 -0300 Subject: [PATCH] Fix accidental globals. --- AppKit/CPMenu/_CPMenuWindow.j | 2 +- AppKit/CPWindow/_CPStandardWindowView.j | 2 +- Objective-J/CFDictionary.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AppKit/CPMenu/_CPMenuWindow.j b/AppKit/CPMenu/_CPMenuWindow.j index 6aebeca3d..f4243892d 100644 --- a/AppKit/CPMenu/_CPMenuWindow.j +++ b/AppKit/CPMenu/_CPMenuWindow.j @@ -462,7 +462,7 @@ var STICKY_TIME_INTERVAL = 500, while (low <= high) { var middle = FLOOR(low + (high - low) / 2), - info = _visibleMenuItemInfos[middle] + info = _visibleMenuItemInfos[middle], frame = [info.view frame]; if (y < CGRectGetMinY(frame)) diff --git a/AppKit/CPWindow/_CPStandardWindowView.j b/AppKit/CPWindow/_CPStandardWindowView.j index 0c2574ffa..abd7e389d 100644 --- a/AppKit/CPWindow/_CPStandardWindowView.j +++ b/AppKit/CPWindow/_CPStandardWindowView.j @@ -106,7 +106,7 @@ var _CPStandardWindowViewBodyBackgroundColor = nil, _CPStandardWindowViewMinimizeButtonImage = nil, _CPStandardWindowViewMinimizeButtonHighlightedImage = nil; -var STANDARD_GRADIENT_HEIGHT = 41.0; +var STANDARD_GRADIENT_HEIGHT = 41.0, STANDARD_TITLEBAR_HEIGHT = 25.0; @implementation _CPStandardWindowView : _CPWindowView diff --git a/Objective-J/CFDictionary.js b/Objective-J/CFDictionary.js index 8c10b7fdf..899ea595e 100644 --- a/Objective-J/CFDictionary.js +++ b/Objective-J/CFDictionary.js @@ -188,7 +188,7 @@ CFMutableDictionary.prototype.removeValueForKey = function(/*String*/ aKey) var keys = this._keys, index = 0, count = keys.length; - + for (; index < count; ++index) if (keys[index] === aKey) {