Fixed: under some circumstances, blur function could be called with no CPTextFieldInputOwner set

This would cause a crash because the blur function was trying to access the DOM element.

Now we check if the owner is null.
This commit is contained in:
Aparajita Fishman committed 2013-03-13 15:32:54 -04:00
1 parent 7df34cc709
commit 1e98c66b3c
1 file changed
+1 -1
+1 -1
View File
@@ -238,7 +238,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
return CPTextFieldBlurFunction(
anEvent,
CPTextFieldInputOwner,
CPTextFieldInputOwner._DOMElement,
CPTextFieldInputOwner ? CPTextFieldInputOwner._DOMElement : nil,
CPTextFieldDOMInputElement,
CPTextFieldInputResigning,
@ref(CPTextFieldInputDidBlur));