Skip to content

Instantly share code, notes, and snippets.

@tdtsh
Created August 23, 2014 23:14
Show Gist options
  • Save tdtsh/53c8372f690cd0b018f9 to your computer and use it in GitHub Desktop.
Save tdtsh/53c8372f690cd0b018f9 to your computer and use it in GitHub Desktop.
underscore.js の debounce を使うと Android でコケるの発生条件
index.xml
<Alloy>
<Window>
<Button onClick="testMe">Button</Button>
</Window>
</Alloy>
index.js
$.index.open();
var testMe = _.debounce(function() {
console.info('test me!');
}, 300, true);
https://jira.appcelerator.org/browse/TIMOB-14213
@tdtsh
Copy link
Author

tdtsh commented Aug 23, 2014

実際にはもうちょっとたてこんでたけど大体こんな感じです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment