2012-08-16 23:41:25 -04:00
|
|
|
snippet add
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.add('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet addClass
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.addClass('${2:class name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet after
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.after('${2:Some text <b>and bold!</b>}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ajax
|
|
|
|
$.ajax({
|
|
|
|
url: '${1:mydomain.com/url}',
|
|
|
|
type: '${2:POST}',
|
|
|
|
dataType: '${3:xml/html/script/json}',
|
|
|
|
data: $.param( $('${4:Element or Expression}') ),
|
|
|
|
complete: function (jqXHR, textStatus) {
|
|
|
|
${5:// callback}
|
|
|
|
},
|
|
|
|
success: function (data, textStatus, jqXHR) {
|
|
|
|
${6:// success callback}
|
|
|
|
},
|
|
|
|
error: function (jqXHR, textStatus, errorThrown) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// error callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
snippet ajaxcomplete
|
|
|
|
${1:obj}.ajaxComplete(function (${1:e}, xhr, settings) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet ajaxerror
|
|
|
|
${1:obj}.ajaxError(function (${1:e}, xhr, settings, thrownError) {
|
|
|
|
${2:// error callback}
|
|
|
|
});
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ajaxget
|
|
|
|
$.get('${1:mydomain.com/url}',
|
|
|
|
${2:{ param1: value1 },}
|
|
|
|
function (data, textStatus, jqXHR) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// success callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
);
|
|
|
|
snippet ajaxpost
|
|
|
|
$.post('${1:mydomain.com/url}',
|
|
|
|
${2:{ param1: value1 },}
|
|
|
|
function (data, textStatus, jqXHR) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// success callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
);
|
|
|
|
snippet ajaxprefilter
|
|
|
|
$.ajaxPrefilter(function (${1:options}, ${2:originalOptions}, jqXHR) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0: // Modify options, control originalOptions, store jqXHR, etc}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet ajaxsend
|
|
|
|
${1:obj}.ajaxSend(function (${1:request, settings}) {
|
|
|
|
${2:// error callback}
|
|
|
|
});
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ajaxsetup
|
|
|
|
$.ajaxSetup({
|
|
|
|
url: "${1:mydomain.com/url}",
|
|
|
|
type: "${2:POST}",
|
|
|
|
dataType: "${3:xml/html/script/json}",
|
|
|
|
data: $.param( $("${4:Element or Expression}") ),
|
|
|
|
complete: function (jqXHR, textStatus) {
|
|
|
|
${5:// callback}
|
|
|
|
},
|
|
|
|
success: function (data, textStatus, jqXHR) {
|
|
|
|
${6:// success callback}
|
|
|
|
},
|
|
|
|
error: function (jqXHR, textStatus, errorThrown) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// error callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
snippet ajaxstart
|
|
|
|
$.ajaxStart(function () {
|
|
|
|
${1:// handler for when an AJAX call is started and no other AJAX calls are in progress};
|
|
|
|
});
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ajaxstop
|
|
|
|
$.ajaxStop(function () {
|
|
|
|
${1:// handler for when all AJAX calls have been completed};
|
|
|
|
});
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ajaxsuccess
|
|
|
|
$.ajaxSuccess(function (${1:e}, xhr, settings) {
|
|
|
|
${2:// handler for when any AJAX call is successfully completed};
|
|
|
|
});
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet andself
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.andSelf()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet animate
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet append
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.append('${2:Some text <b>and bold!</b>}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet appendTo
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.appendTo('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet attr
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.attr('${2:attribute}', '${3:value}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet attrm
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet before
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.before('${2:Some text <b>and bold!</b>}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet bind
|
|
|
|
${1:obj}.bind('${2:event name}', function (${3:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet blur
|
|
|
|
${1:obj}.blur(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet C
|
2013-11-16 14:45:48 -05:00
|
|
|
$.Callbacks()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Cadd
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.add(${2:callbacks})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Cdis
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.disable()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Cempty
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.empty()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Cfire
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.fire(${2:args})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Cfired
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.fired()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Cfirew
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.fireWith(${2:this}, ${3:args})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Chas
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.has(${2:callback})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Clock
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.lock()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Clocked
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.locked()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Crem
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:callbacks}.remove(${2:callbacks})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet change
|
|
|
|
${1:obj}.change(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet children
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.children('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet clearq
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.clearQueue(${2:'queue name'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet click
|
|
|
|
${1:obj}.click(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet clone
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.clone()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet contains
|
2013-11-16 14:45:48 -05:00
|
|
|
$.contains(${1:container}, ${0:contents});
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet css
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.css('${2:attribute}', '${3:value}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet csshooks
|
|
|
|
$.cssHooks['${1:CSS prop}'] = {
|
|
|
|
get: function (elem, computed, extra) {
|
|
|
|
${2: // handle getting the CSS property}
|
|
|
|
},
|
|
|
|
set: function (elem, value) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0: // handle setting the CSS value}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
snippet cssm
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.css({${2:attribute1}: '${3:value1}', ${4:attribute2}: '${5:value2}'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet D
|
2013-11-16 14:45:48 -05:00
|
|
|
$.Deferred()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dalways
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.always(${2:callbacks})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Ddone
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.done(${2:callbacks})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dfail
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.fail(${2:callbacks})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Disrej
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.isRejected()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Disres
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.isResolved()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dnotify
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.notify(${2:args})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dnotifyw
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.notifyWith(${2:this}, ${3:args})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dpipe
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.then(${2:doneFilter}, ${3:failFilter}, ${4:progressFilter})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dprog
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.progress(${2:callbacks})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dprom
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.promise(${2:target})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Drej
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.reject(${2:args})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Drejw
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.rejectWith(${2:this}, ${3:args})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dres
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.resolve(${2:args})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dresw
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.resolveWith(${2:this}, ${3:args})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dstate
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.state()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dthen
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:deferred}.then(${2:doneCallbacks}, ${3:failCallbacks}, ${4:progressCallbacks})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet Dwhen
|
2013-11-16 14:45:48 -05:00
|
|
|
$.when(${1:deferreds})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet data
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.data(${2:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet dataa
|
2013-11-16 14:45:48 -05:00
|
|
|
$.data('${1:selector expression}', '${2:key}'${3:, 'value'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet dblclick
|
|
|
|
${1:obj}.dblclick(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet delay
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.delay('${2:slow/400/fast}'${3:, 'queue name'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet dele
|
|
|
|
${1:obj}.delegate('${2:selector expression}', '${3:event name}', function (${4:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet deq
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.dequeue(${2:'queue name'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet deqq
|
2013-11-16 14:45:48 -05:00
|
|
|
$.dequeue('${1:selector expression}'${2:, 'queue name'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet detach
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.detach('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet die
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.die(${2:event}, ${3:handler})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet each
|
|
|
|
${1:obj}.each(function (index) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:this.innerHTML = this + " is the element, " + index + " is the position";}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet el
|
2013-11-16 14:45:48 -05:00
|
|
|
$('<${1}/>'${2:, {}})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet eltrim
|
2013-11-16 14:45:48 -05:00
|
|
|
$.trim('${1:string}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet empty
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.empty()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet end
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.end()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet eq
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.eq(${2:element index})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet error
|
|
|
|
${1:obj}.error(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet eventsmap
|
|
|
|
{
|
2013-11-16 14:45:48 -05:00
|
|
|
:f${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet extend
|
2013-11-16 14:45:48 -05:00
|
|
|
$.extend(${1:true, }${2:target}, ${3:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet fadein
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.fadeIn('${2:slow/400/fast}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet fadeinc
|
|
|
|
${1:obj}.fadeIn('slow/400/fast', function () {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback};
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet fadeout
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.fadeOut('${2:slow/400/fast}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet fadeoutc
|
|
|
|
${1:obj}.fadeOut('slow/400/fast', function () {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback};
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet fadeto
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.fadeTo('${2:slow/400/fast}', ${3:0.5})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet fadetoc
|
|
|
|
${1:obj}.fadeTo('slow/400/fast', ${2:0.5}, function () {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback};
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet filter
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.filter('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet filtert
|
|
|
|
${1:obj}.filter(function (${2:index}) {
|
2013-07-17 19:06:05 -04:00
|
|
|
${3}
|
2013-11-16 14:45:48 -05:00
|
|
|
})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet find
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.find('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet focus
|
|
|
|
${1:obj}.focus(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet focusin
|
|
|
|
${1:obj}.focusIn(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet focusout
|
|
|
|
${1:obj}.focusOut(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet get
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.get(${2:element index})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet getjson
|
|
|
|
$.getJSON('${1:mydomain.com/url}',
|
|
|
|
${2:{ param1: value1 },}
|
|
|
|
function (data, textStatus, jqXHR) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// success callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
);
|
|
|
|
snippet getscript
|
|
|
|
$.getScript('${1:mydomain.com/url}', function (script, textStatus, jqXHR) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet grep
|
|
|
|
$.grep(${1:array}, function (item, index) {
|
2013-07-17 19:06:05 -04:00
|
|
|
${2}
|
2013-11-16 14:45:48 -05:00
|
|
|
}${0:, true});
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet hasc
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.hasClass('${2:className}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet hasd
|
2013-11-16 14:45:48 -05:00
|
|
|
$.hasData('${0:selector expression}');
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet height
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.height(${2:integer})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet hide
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.hide('${2:slow/400/fast}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet hidec
|
|
|
|
${1:obj}.hide('${2:slow/400/fast}', function () {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet hover
|
|
|
|
${1:obj}.hover(function (${2:e}) {
|
|
|
|
${3:// event handler}
|
|
|
|
}, function ($2) {
|
|
|
|
${4:// event handler}
|
2013-11-16 14:45:48 -05:00
|
|
|
});
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet html
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.html('${2:Some text <b>and bold!</b>}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet inarr
|
2013-11-16 14:45:48 -05:00
|
|
|
$.inArray(${1:value}, ${0:array});
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet insa
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.insertAfter('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet insb
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.insertBefore('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet is
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.is('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet isarr
|
2013-11-16 14:45:48 -05:00
|
|
|
$.isArray(${1:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet isempty
|
2013-11-16 14:45:48 -05:00
|
|
|
$.isEmptyObject(${1:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet isfunc
|
2013-11-16 14:45:48 -05:00
|
|
|
$.isFunction(${1:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet isnum
|
2013-11-16 14:45:48 -05:00
|
|
|
$.isNumeric(${1:value})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet isobj
|
2013-11-16 14:45:48 -05:00
|
|
|
$.isPlainObject(${1:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet iswin
|
2013-11-16 14:45:48 -05:00
|
|
|
$.isWindow(${1:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet isxml
|
2013-11-16 14:45:48 -05:00
|
|
|
$.isXMLDoc(${1:node})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet jj
|
2013-11-16 14:45:48 -05:00
|
|
|
$('${1:selector}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet kdown
|
|
|
|
${1:obj}.keydown(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet kpress
|
|
|
|
${1:obj}.keypress(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet kup
|
|
|
|
${1:obj}.keyup(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet last
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.last('${1:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet live
|
|
|
|
${1:obj}.live('${2:events}', function (${3:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet load
|
|
|
|
${1:obj}.load(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet loadf
|
|
|
|
${1:obj}.load('${2:mydomain.com/url}',
|
|
|
|
${2:{ param1: value1 },}
|
|
|
|
function (responseText, textStatus, xhr) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// success callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
snippet makearray
|
2013-11-16 14:45:48 -05:00
|
|
|
$.makeArray(${0:obj});
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet map
|
|
|
|
${1:obj}.map(function (${2:index}, ${3:element}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet mapp
|
|
|
|
$.map(${1:arrayOrObject}, function (${2:value}, ${3:indexOrKey}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet merge
|
2013-11-16 14:45:48 -05:00
|
|
|
$.merge(${1:target}, ${0:original});
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet mdown
|
|
|
|
${1:obj}.mousedown(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet menter
|
|
|
|
${1:obj}.mouseenter(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet mleave
|
|
|
|
${1:obj}.mouseleave(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet mmove
|
|
|
|
${1:obj}.mousemove(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet mout
|
|
|
|
${1:obj}.mouseout(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet mover
|
|
|
|
${1:obj}.mouseover(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet mup
|
|
|
|
${1:obj}.mouseup(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet next
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.next('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet nexta
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.nextAll('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet nextu
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.nextUntil('${2:selector expression}'${3:, 'filter expression'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet not
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.not('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet off
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.off('${2:events}', '${3:selector expression}'${4:, handler})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet offset
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.offset()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet offsetp
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.offsetParent()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet on
|
|
|
|
${1:obj}.on('${2:events}', '${3:selector expression}', function (${4:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet one
|
|
|
|
${1:obj}.one('${2:event name}', function (${3:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet outerh
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.outerHeight()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet outerw
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.outerWidth()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet param
|
2013-11-16 14:45:48 -05:00
|
|
|
$.param(${1:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet parent
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.parent('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet parents
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.parents('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet parentsu
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.parentsUntil('${2:selector expression}'${3:, 'filter expression'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet parsejson
|
2013-11-16 14:45:48 -05:00
|
|
|
$.parseJSON(${1:data})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet parsexml
|
2013-11-16 14:45:48 -05:00
|
|
|
$.parseXML(${1:data})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet pos
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.position()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet prepend
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.prepend('${2:Some text <b>and bold!</b>}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet prependto
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.prependTo('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet prev
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.prev('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet preva
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.prevAll('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet prevu
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.prevUntil('${2:selector expression}'${3:, 'filter expression'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet promise
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.promise(${2:'fx'}, ${3:target})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet prop
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.prop('${2:property name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet proxy
|
2013-11-16 14:45:48 -05:00
|
|
|
$.proxy(${1:function}, ${2:this})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet pushstack
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.pushStack(${2:elements})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet queue
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.queue(${2:name}${3:, newQueue})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet queuee
|
2013-11-16 14:45:48 -05:00
|
|
|
$.queue(${1:element}${2:, name}${3:, newQueue})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ready
|
|
|
|
$(function () {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet rem
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.remove()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet rema
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.removeAttr('${2:attribute name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet remc
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.removeClass('${2:class name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet remd
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.removeData('${2:key name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet remdd
|
2013-11-16 14:45:48 -05:00
|
|
|
$.removeData(${1:element}${2:, 'key name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet remp
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.removeProp('${2:property name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet repa
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.replaceAll(${2:target})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet repw
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.replaceWith(${2:content})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet reset
|
|
|
|
${1:obj}.reset(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet resize
|
|
|
|
${1:obj}.resize(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet scroll
|
|
|
|
${1:obj}.scroll(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet scrolll
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.scrollLeft(${2:value})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet scrollt
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.scrollTop(${2:value})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet sdown
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.slideDown('${2:slow/400/fast}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet sdownc
|
|
|
|
${1:obj}.slideDown('${2:slow/400/fast}', function () {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback};
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet select
|
|
|
|
${1:obj}.select(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet serialize
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.serialize()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet serializea
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.serializeArray()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet show
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.show('${2:slow/400/fast}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet showc
|
|
|
|
${1:obj}.show('${2:slow/400/fast}', function () {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet sib
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.siblings('${2:selector expression}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet size
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.size()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet slice
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.slice(${2:start}${3:, end})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet stoggle
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.slideToggle('${2:slow/400/fast}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet stop
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.stop('${2:queue}', ${3:false}, ${4:false})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet submit
|
|
|
|
${1:obj}.submit(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet sup
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.slideUp('${2:slow/400/fast}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet supc
|
|
|
|
${1:obj}.slideUp('${2:slow/400/fast}', function () {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// callback};
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet text
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.text(${2:'some text'})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet this
|
2013-11-16 14:45:48 -05:00
|
|
|
$(this)
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet toarr
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:obj}.toArray()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet tog
|
|
|
|
${1:obj}.toggle(function (${2:e}) {
|
|
|
|
${3:// event handler}
|
|
|
|
}, function ($2) {
|
|
|
|
${4:// event handler}
|
|
|
|
});
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet togclass
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.toggleClass('${2:class name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet togsh
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.toggle('${2:slow/400/fast}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet trig
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.trigger('${2:event name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet trigh
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.triggerHandler('${2:event name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet $trim
|
2013-11-16 14:45:48 -05:00
|
|
|
$.trim(${1:str})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet $type
|
2013-11-16 14:45:48 -05:00
|
|
|
$.type(${1:obj})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet unbind
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.unbind('${2:event name}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet undele
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.undelegate(${2:selector expression}, ${3:event}, ${4:handler})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet uniq
|
2013-11-16 14:45:48 -05:00
|
|
|
$.unique(${1:array})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet unload
|
|
|
|
${1:obj}.unload(function (${2:e}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:// event handler}
|
2012-08-16 23:41:25 -04:00
|
|
|
});
|
|
|
|
snippet unwrap
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.unwrap()
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet val
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.val('${2:text}')
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet width
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.width(${2:integer})
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet wrap
|
2013-11-16 14:45:48 -05:00
|
|
|
${1:obj}.wrap('${2:<div class="extra-wrapper"></div>}')
|