Skip to content

Instantly share code, notes, and snippets.

View miguelmich's full-sized avatar

Miguel Henao miguelmich

View GitHub Profile
@olimortimer
olimortimer / gist:6775681
Created October 1, 2013 08:56
JS: Select2 FastClick Fix
$('#select2').select2({
data: data,
// Add our 'needsclick' to each item, so FastClick doesn't get applied
formatResult: function(result, container, query, escapeMarkup) {
container.addClass('needsclick');
return result.text;
}
});