$(document).one('feature-a', '#some-id', function() {
$(document).on('some-event', '#some-ids', handler);
});
//Turn on feature a
$('#a, #b').trigger('feature-a');
Last active
August 29, 2015 13:57
-
-
Save yuanmai/9756430 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment