Merge pull request #2822 from daboe01/cpcursor-fix

fixed: accidental creation of a global variable in CPCursor.j
This commit is contained in:
Alexandre Wilhelm
2019-04-03 14:36:44 -07:00
committed by GitHub
Executable → Regular
+2 -3
View File
@@ -193,9 +193,8 @@ CPCursorPlatformBoth = 3;
if (typeof cursor === "undefined")
{
var themeResourcePath = [[[CPApp themeBlend] bundle] resourcePath],
extension = CPBrowserIsOperatingSystem(CPWindowsOperatingSystem) ? @"cur" : @"png";
cssString = [CPString stringWithFormat:@"url(%@cursors/%@.%@), %@", themeResourcePath, cursorName, extension, aString];
extension = CPBrowserIsOperatingSystem(CPWindowsOperatingSystem) ? @"cur" : @"png",
cssString = [CPString stringWithFormat:@"url(%@cursors/%@.%@), %@", themeResourcePath, cursorName, extension, aString];
cursors[cursorName] = cursor = [[CPCursor alloc] initWithCSSString:cssString];
}