Skip to content

Instantly share code, notes, and snippets.

@asdf072
asdf072 / README
Last active December 14, 2015 05:09 — forked from Victa/README
This fork of single_double_click is safe for .draggable()/.droppable()/.sortable(). It adds a second timer to keep track of drag time.
Code:
$(function(){
$("button").singleDoubleClick({
singleCallback: function(){ alert("You clicked once") },
doubleCallback: function(){ alert("You clicked twice") }
});
@asdf072
asdf072 / FLUX-filterActions.js
Last active September 25, 2016 17:02
React/Flux lag
var FilterActions = {
clickCatFilter: function(catId){
Dispatcher.dispatch({
actionType: FilterConst.CLICK_CAT_FILTER,
data: catId
});
}
}