An open API service indexing awesome lists of open source software.

https://github.com/amiel/jquery_scope

Allows a bunch of jquery calls to be default scoped to something other than document.
https://github.com/amiel/jquery_scope

Last synced: 4 months ago
JSON representation

Allows a bunch of jquery calls to be default scoped to something other than document.

Awesome Lists containing this project

README

          

h1. jQuery Scope

Allows a bunch of jquery calls to be default scoped to something other than document.

h2. Examples



$.with_scope('#post_15', function($) {
$('.comments').hide();
});

$('#post_15').as_scope(function($) {
$('.comments').hide();
});

$('#messages').as_scope(function(messages) {
messages('.reply').click(message_reply_handler);
});