[TIMOB-14213] Android: Exception thrown when using Underscore debounce
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-18T00:12:27.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | Release 3.4.0 |
Components | Android |
Labels | android, debounce, module_exceptions, qe-manualtest, qe-testadded, supportTeam, throttle, underscore |
Reporter | rowan smith |
Assignee | Sunila |
Created | 2013-05-08T10:46:31.000+0000 |
Updated | 2014-08-19T05:54:44.000+0000 |
To be clear, this is only an issue with android? Does the function behave as expected on iOS or other platforms?
I have not tried any other builds.
If possible, can you verify whether or not it occurs on iOS?
I can confirm that it runs as expected on the iphone simulator
This issue should be resolved. Debounce() is a useful Underscore function for buttons within apps, particularly buttons that open new windows, where Titanium often hesitates and an app user may click a button a second time (hence now opening two new windows). It makes no sense that debounce() works in iOS and not Android. All Underscore and Backbone functions should be supported and work correctly for both iOS and Android.
I got here from a google search and I just wanted to add that it doesn't work on iOS either. The 2 commands _debounce_ and _throttle_ don't do anything on iOS. TiSDK 3.2.0
[~a.marcone] iOS simulator or iOS device or both?
Moving this to 3.3.1 as workaround is already in place.
Changed the clearTimeout function to take an object instead of integer so that we can handle null values. https://github.com/appcelerator/titanium_mobile/pull/5756
Pull request updated
Environment - Appcelerator Studio - 3.3.0.201407111535 SDK - 3.4.0.v20140815142514 ACS - 1.0.16 Alloy - 1.4.1 NPM - 1.3.2 Titanium - 3.3.0 Code-processor - 1.1.1 Xcode - 6Beta5 OS - Mavericks(v10.9.4) Devices - Nexus 7(v4.4), iPhone5(v7.1.2) No exception is thrown. Underscore debounce method working fine. Working fine.
Closing as working as expected. Verified with environment: Appcelerator Studio:3.4.0.201408180158 Sdk:3.4.0.v20140815142514 alloy:1.5.0-dev titanium:3.4.0-dev titanium-code-processor:1.1.1 acs:1.0.16 npm:1.3.2 OS:Maverick(10.9.4) xcode: Xcode6Beta5 Device:iPhone5c(v7.1.2), Nexus 7(v4.4.2)