Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14213] Android: Exception thrown when using Underscore debounce

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-06-18T00:12:27.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.4.0
ComponentsAndroid
Labelsandroid, debounce, module_exceptions, qe-manualtest, qe-testadded, supportTeam, throttle, underscore
Reporterrowan smith
AssigneeSunila
Created2013-05-08T10:46:31.000+0000
Updated2014-08-19T05:54:44.000+0000

Description

Comments

  1. Tony Lukasavage 2013-05-08

    To be clear, this is only an issue with android? Does the function behave as expected on iOS or other platforms?
  2. rowan smith 2013-05-08

    I have not tried any other builds.
  3. Tony Lukasavage 2013-05-08

    If possible, can you verify whether or not it occurs on iOS?
  4. rowan smith 2013-05-08

    I can confirm that it runs as expected on the iphone simulator
  5. Matt Moskal 2013-09-20

    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.
  6. Alberto Marcone 2014-01-30

    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
  7. Ingo Muschenetz 2014-01-30

    [~a.marcone] iOS simulator or iOS device or both?
  8. Ingo Muschenetz 2014-05-01

    Moving this to 3.3.1 as workaround is already in place.
  9. Sunila 2014-06-03

    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
  10. Sunila 2014-06-05

    Pull request updated
  11. Priya Agarwal 2014-08-18

    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.
  12. Priya Agarwal 2014-08-19

    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)

JSON Source