view release on metacpan or search on metacpan
share/js/jquery-1.11.3.js view on Meta::CPAN
312931303131313231333134313531363137313831393140314131423143314431453146314731483149// End of the loop
when
firing
firingLength,
// Index of currently firing callback (modified by remove
if
needed)
firingIndex,
// First callback to fire (used internally by add and fireWith)
firingStart,
// Actual callback list
list = [],
// Stack of fire calls
for
repeatable lists
stack = !options.once && [],
// Fire callbacks
fire = function( data ) {
memory = options.memory && data;
fired = true;
firingIndex = firingStart || 0;
firingStart = 0;
firingLength = list.
length
;
firing = true;
for
( ; list && firingIndex < firingLength; firingIndex++ ) {
if
( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
memory = false; // To prevent further calls using add
share/js/jquery-1.11.3.js view on Meta::CPAN
315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196
}
}
else
if
( memory ) {
list = [];
}
else
{
self.disable();
}
}
},
// Actual Callbacks object
self = {
// Add a callback or a collection of callbacks to the list
add: function() {
if
( list ) {
// First, we save the current
length
var start = list.
length
;
(function add( args ) {
jQuery.
each
( args, function( _, arg ) {
var type = jQuery.type( arg );
if
( type ===
"function"
) {
if
( !options.unique || !self.
has
( arg ) ) {
list.
push
( arg );
}
}
else
if
( arg && arg.
length
&& type !==
"string"
) {
// Inspect recursively
add( arg );
}
});
})( arguments );
// Do we need to add the callbacks to the
// current firing batch?
if
( firing ) {
firingLength = list.
length
;
// With memory,
if
we're not firing then
// we should call right away
}
else
if
( memory ) {
firingStart = start;
fire( memory );
}
}
share/js/jquery-1.11.3.js view on Meta::CPAN
3211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235
if
(
index
<= firingIndex ) {
firingIndex--;
}
}
}
});
}
return
this;
},
// Check
if
a
given
callback is in the list.
// If
no
argument is
given
,
return
whether or not list
has
callbacks attached.
has
: function( fn ) {
return
fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.
length
);
},
// Remove all callbacks from the list
empty: function() {
list = [];
firingLength = 0;
return
this;
},
// Have the list
do
nothing anymore
disable: function() {
list = stack = memory = undefined;
return
this;
},
share/js/jquery-1.11.3.js view on Meta::CPAN
324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280
stack = undefined;
if
( !memory ) {
self.disable();
}
return
this;
},
// Is it locked?
locked: function() {
return
!stack;
},
// Call all callbacks
with
the
given
context and arguments
fireWith: function( context, args ) {
if
( list && ( !fired || stack ) ) {
args = args || [];
args = [ context, args.slice ? args.slice() : args ];
if
( firing ) {
stack.
push
( args );
}
else
{
fire( args );
}
}
return
this;
},
// Call all the callbacks
with
the
given
arguments
fire: function() {
self.fireWith( this, arguments );
return
this;
},
// To know
if
the callbacks have already been called at least once
fired: function() {
return
!!fired;
}
};
return
self;
};
jQuery.extend({
share/js/jquery-1.11.3.js view on Meta::CPAN
740774087409741074117412741374147415741674177418741974207421742274237424742574267427
}
jQuery.fx.timer(
jQuery.extend( tick, {
elem: elem,
anim: animation,
queue: animation.opts.queue
})
);
// attach callbacks from options
return
animation.progress( animation.opts.progress )
.done( animation.opts.done, animation.opts.complete )
.fail( animation.opts.fail )
.always( animation.opts.always );
}
jQuery.Animation = jQuery.extend( Animation, {
tweener: function( props, callback ) {
if
( jQuery.isFunction( props ) ) {
callback = props;
share/js/jquery-1.11.3.js view on Meta::CPAN
754575467547754875497550755175527553755475557556755775587559756075617562756375647565
for
(
index
= timers.
length
;
index
--; ) {
if
( timers[
index
].elem === this && (type == null || timers[
index
].queue === type) ) {
timers[
index
].anim.stop( gotoEnd );
dequeue = false;
timers.
splice
(
index
, 1 );
}
}
// start the
next
in the queue
if
the
last
step wasn't forced
// timers currently will call their complete callbacks, which will dequeue
// but only
if
they were gotoEnd
if
( dequeue || !gotoEnd ) {
jQuery.dequeue( this, type );
}
});
},
finish: function( type ) {
if
( type !== false ) {
type = type ||
"fx"
;
}
share/js/jquery-1.11.3.js view on Meta::CPAN
898189828983898489858986898789888989899089918992899389948995899689978998899990009001s = jQuery.ajaxSetup( {}, options ),
// Callbacks context
callbackContext = s.context || s,
// Context
for
global events is callbackContext
if
it is a DOM node or jQuery collection
globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
jQuery( callbackContext ) :
jQuery.event,
// Deferreds
deferred = jQuery.Deferred(),
completeDeferred = jQuery.Callbacks(
"once memory"
),
// Status-dependent callbacks
statusCode = s.statusCode || {},
// Headers (they are sent all at once)
requestHeaders = {},
requestHeadersNames = {},
// The jqXHR state
state = 0,
// Default abort message
strAbort =
"canceled"
,
// Fake xhr
jqXHR = {
share/js/jquery-1.11.3.js view on Meta::CPAN
9032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062},
// Overrides response content-type header
overrideMimeType: function( type ) {
if
( !state ) {
s.mimeType = type;
}
return
this;
},
// Status-dependent callbacks
statusCode: function(
map
) {
var code;
if
(
map
) {
if
( state < 2 ) {
for
( code in
map
) {
// Lazy-add the new callback in a way that preserves old ones
statusCode[ code ] = [ statusCode[ code ],
map
[ code ] ];
}
}
else
{
// Execute the appropriate callbacks
jqXHR.always(
map
[ jqXHR.status ] );
}
}
return
this;
},
// Cancel the request
abort: function( statusText ) {
var finalText = statusText || strAbort;
if
( transport ) {
share/js/jquery-1.11.3.js view on Meta::CPAN
917891799180918191829183918491859186918791889189919091919192919391949195919691979198// Allow custom headers/mimetypes and early abort
if
( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
// Abort
if
not done already and
return
return
jqXHR.abort();
}
// aborting is
no
longer a cancellation
strAbort =
"abort"
;
// Install callbacks on deferreds
for
( i in { success: 1, error: 1, complete: 1 } ) {
jqXHR[ i ]( s[ i ] );
}
// Get transport
transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
// If
no
transport, we auto-abort
if
( !transport ) {
done( -1,
"No Transport"
);
share/js/jquery-1.11.3.js view on Meta::CPAN
930993109311931293139314931593169317931893199320932193229323932493259326932793289329jqXHR.status = status;
jqXHR.statusText = ( nativeStatusText || statusText ) +
""
;
// Success/Error
if
( isSuccess ) {
deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
}
else
{
deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
}
// Status-dependent callbacks
jqXHR.statusCode( statusCode );
statusCode = undefined;
if
( fireGlobals ) {
globalEventContext.trigger( isSuccess ?
"ajaxSuccess"
:
"ajaxError"
,
[ jqXHR, s, isSuccess ? success : error ] );
}
// Complete
completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
share/js/jquery-1.11.3.js view on Meta::CPAN
972097219722972397249725972697279728972997309731973297339734973597369737973897399740
};
if
( !options.async ) {
//
if
we're in sync mode we fire the callback
callback();
}
else
if
( xhr.readyState === 4 ) {
// (IE6 & IE7)
if
it's in cache and
has
been
// retrieved directly we need to fire the callback
setTimeout( callback );
}
else
{
// Add to the list of active xhr callbacks
xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
}
},
abort: function() {
if
( callback ) {
callback( undefined, true );
}
}
};
share/js/jquery-1.11.3.js view on Meta::CPAN
985498559856985798589859986098619862986398649865986698679868986998709871987298739874// Default jsonp settings
jQuery.ajaxSetup({
jsonp:
"callback"
,
jsonpCallback: function() {
var callback = oldCallbacks.
pop
() || ( jQuery.expando +
"_"
+ ( nonce++ ) );
this[ callback ] = true;
return
callback;
}
});
// Detect, normalize options and install callbacks
for
jsonp requests
jQuery.ajaxPrefilter(
"json jsonp"
, function( s, originalSettings, jqXHR ) {
var callbackName, overwritten, responseContainer,
jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
"url"
:
typeof s.data ===
"string"
&& !( s.contentType ||
""
).indexOf(
"application/x-www-form-urlencoded"
) && rjsonp.test( s.data ) &&
"data"
);
// Handle iff the expected data type is
"jsonp"
or we have a parameter to set
if
( jsonProp || s.dataTypes[ 0 ] ===
"jsonp"
) {
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
540541542543544545546547548549550551552553554555556557558559560$.Widget = function( /* options, element */ ) {};
$.Widget._childConstructors = [];
$.Widget.
prototype
= {
widgetName:
"widget"
,
widgetEventPrefix:
""
,
defaultElement:
"<div>"
,
options: {
disabled: false,
// callbacks
create: null
},
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
this.uuid = widget_uuid++;
this.eventNamespace =
"."
+ this.widgetName + this.uuid;
this.bindings = $();
this.hoverable = $();
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
156815691570157115721573157415751576157715781579158015811582158315841585158615871588
animate: {},
collapsible: false,
event:
"click"
,
header:
"> li > :first-child,> :not(li):even"
,
heightStyle:
"auto"
,
icons: {
activeHeader:
"ui-icon-triangle-1-s"
,
header:
"ui-icon-triangle-1-e"
},
// callbacks
activate: null,
beforeActivate: null
},
hideProps: {
borderTopWidth:
"hide"
,
borderBottomWidth:
"hide"
,
paddingTop:
"hide"
,
paddingBottom:
"hide"
,
height:
"hide"
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
214621472148214921502151215221532154215521562157215821592160216121622163216421652166
submenu:
"ui-icon-carat-1-e"
},
items:
"> *"
,
menus:
"ul"
,
position: {
my
:
"left-1 top"
,
at:
"right top"
},
role:
"menu"
,
// callbacks
blur: null,
focus: null,
select
: null
},
_create: function() {
this.activeMenu = this.element;
// Flag used to prevent firing of the click handler
// as the event bubbles up through nested menus
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
277627772778277927802781278227832784278527862787278827892790279127922793279427952796
autoFocus: false,
delay: 300,
minLength: 1,
position: {
my
:
"left top"
,
at:
"left bottom"
,
collision:
"none"
},
source: null,
// callbacks
change: null,
close
: null,
focus: null,
open
: null,
response: null,
search: null,
select
: null
},
requestIndex: 0,
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
587058715872587358745875587658775878587958805881588258835884588558865887588858895890
scope:
"default"
,
scroll: true,
scrollSensitivity: 20,
scrollSpeed: 20,
snap: false,
snapMode:
"both"
,
snapTolerance: 20,
stack: false,
zIndex: false,
// callbacks
drag: null,
start: null,
stop: null
},
_create: function() {
if
( this.options.helper ===
"original"
) {
this._setPositionRelative();
}
if
(this.options.addClasses){
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
602160226023602460256026602760286029603060316032603360346035603660376038603960406041this.originalPosition = this.position = this._generatePosition( event, false );
this.originalPageX = event.pageX;
this.originalPageY = event.pageY;
//Adjust the mouse offset relative to the helper
if
"cursorAt"
is supplied
(o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));
//Set a containment
if
given
in the options
this._setContainment();
//Trigger event + callbacks
if
(this._trigger(
"start"
, event) === false) {
this._clear();
return
false;
}
//Recache the helper size
this._cacheHelperProportions();
//Prepare the droppable offsets
if
($.ui.ddmanager && !o.dropBehaviour) {
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
607460756076607760786079608060816082608360846085608660876088608960906091609260936094_mouseDrag: function(event, noPropagation) {
//
reset
any necessary cached properties (see
#5009)
if
( this.hasFixedAncestor ) {
this.offset.parent = this._getParentOffset();
}
//Compute the helpers position
this.position = this._generatePosition( event, true );
this.positionAbs = this._convertPositionTo(
"absolute"
);
if
(!noPropagation) {
var ui = this._uiHash();
if
(this._trigger(
"drag"
, event, ui) === false) {
this._mouseUp({});
return
false;
}
this.position = ui.position;
}
this.helper[ 0 ].style.left = this.position.left +
"px"
;
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
665766586659666066616662666366646665666666676668666966706671667266736674667566766677
// Inform draggable that the helper is in a valid drop zone,
// used solely in the revert option to handle
"valid/invalid"
.
draggable.dropped = sortable.element;
// Need to refreshPositions of all sortables in the case that
// adding to one sortable changes the location of the other sortables (
#9675)
$.
each
( draggable.sortables, function() {
this.refreshPositions();
});
// hack so receive/update callbacks work (mostly)
draggable.currentItem = draggable.element;
sortable.fromOutside = draggable;
}
if
( sortable.currentItem ) {
sortable._mouseDrag( event );
// Copy the sortable
's position because the draggable'
s can potentially reflect
// a relative position,
while
sortable is always absolute, which the dragged
// element
has
now become. (
#8809)
ui.position = sortable.position;
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
698069816982698369846985698669876988698969906991699269936994699569966997699869997000
grid: false,
handles:
"e,s,se"
,
helper: false,
maxHeight: null,
maxWidth: null,
minHeight: 10,
minWidth: 10,
// See
#7960
zIndex: 90,
// callbacks
resize: null,
start: null,
stop: null
},
_num: function( value ) {
return
parseInt( value, 10 ) || 0;
},
_isNumber: function( value ) {
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
813081318132813381348135813681378138813981408141814281438144814581468147814881498150
if
( topOffset < 0 ) {
$( this ).css(
"top"
,
pos
.top - topOffset );
}
}
},
resizable: true,
show: null,
title: null,
width: 300,
// callbacks
beforeClose: null,
close
: null,
drag: null,
dragStart: null,
dragStop: null,
focus: null,
open
: null,
resize: null,
resizeStart: null,
resizeStop: null
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
896489658966896789688969897089718972897389748975897689778978897989808981898289838984widgetEventPrefix:
"drop"
,
options: {
accept
:
"*"
,
activeClass: false,
addClasses: true,
greedy: false,
hoverClass: false,
scope:
"default"
,
tolerance:
"intersect"
,
// callbacks
activate: null,
deactivate: null,
drop: null,
out: null,
over: null
},
_create: function() {
var proportions,
o = this.options,
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945var selectable = $.widget(
"ui.selectable"
, $.ui.mouse, {
version:
"1.11.4"
,
options: {
appendTo:
"body"
,
autoRefresh: true,
distance: 0,
filter:
"*"
,
tolerance:
"touch"
,
// callbacks
selected: null,
selecting: null,
start: null,
stop: null,
unselected: null,
unselecting: null
},
_create: function() {
var selectees,
that = this;
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224
icons: {
button:
"ui-icon-triangle-1-s"
},
position: {
my
:
"left top"
,
at:
"left bottom"
,
collision:
"none"
},
width: null,
// callbacks
change: null,
close
: null,
focus: null,
open
: null,
select
: null
},
_create: function() {
var selectmenuId = this.element.uniqueId().attr(
"id"
);
this.ids = {
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
1280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821
animate: false,
distance: 0,
max: 100,
min: 0,
orientation:
"horizontal"
,
range: false,
step: 1,
value: 0,
values
: null,
// callbacks
change: null,
slide: null,
start: null,
stop: null
},
// number of pages in a slider
// (how many
times
can you page up/down to go through the whole range)
numPages: 5,
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537opacity: false,
placeholder: false,
revert: false,
scroll: true,
scrollSensitivity: 20,
scrollSpeed: 20,
scope:
"default"
,
tolerance:
"intersect"
,
zIndex: 1000,
// callbacks
activate: null,
beforeStop: null,
change: null,
deactivate: null,
out: null,
over: null,
receive: null,
remove: null,
sort
: null,
start: null,
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759
this._storedZIndex = this.helper.css(
"zIndex"
);
}
this.helper.css(
"zIndex"
, o.zIndex);
}
//Prepare scrolling
if
(this.scrollParent[0] !== this.document[0] && this.scrollParent[0].tagName !==
"HTML"
) {
this.overflowOffset = this.scrollParent.offset();
}
//Call callbacks
this._trigger(
"start"
, event, this._uiHash());
//Recache the helper size
if
(!this._preserveHelperProportions) {
this._cacheHelperProportions();
}
//Post
"activate"
events to possible containers
if
( !noActivation ) {
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905
}
//Post events to containers
this._contactContainers(event);
//Interconnect
with
droppables
if
($.ui.ddmanager) {
$.ui.ddmanager.drag(this, event);
}
//Call callbacks
this._trigger(
"sort"
, event, this._uiHash());
this.lastPositionAbs = this.positionAbs;
return
false;
},
_mouseStop: function(event, noPropagation) {
if
(!event) {
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319version:
"1.11.4"
,
delay: 300,
options: {
active: null,
collapsible: false,
event:
"click"
,
heightStyle:
"content"
,
hide: null,
show: null,
// callbacks
activate: null,
beforeActivate: null,
beforeLoad: null,
load: null
},
_isLocal: (function() {
var rhash = /
#.*$/;
return
function( anchor ) {
share/js/jquery-ui-1.11.4.js view on Meta::CPAN
161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202
items:
"[title]:not([disabled])"
,
position: {
my
:
"left top+15"
,
at:
"left bottom"
,
collision:
"flipfit flip"
},
show: true,
tooltipClass: null,
track: false,
// callbacks
close
: null,
open
: null
},
_addDescribedBy: function( elem, id ) {
var describedby = (elem.attr(
"aria-describedby"
) ||
""
).
split
( /\s+/ );
describedby.
push
( id );
elem
.data(
"ui-tooltip-id"
, id )
.attr(
"aria-describedby"
, $.trim( describedby.
join
(
" "
) ) );
share/js/jquery-ui.js view on Meta::CPAN
540541542543544545546547548549550551552553554555556557558559560$.Widget = function( /* options, element */ ) {};
$.Widget._childConstructors = [];
$.Widget.
prototype
= {
widgetName:
"widget"
,
widgetEventPrefix:
""
,
defaultElement:
"<div>"
,
options: {
disabled: false,
// callbacks
create: null
},
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
this.uuid = widget_uuid++;
this.eventNamespace =
"."
+ this.widgetName + this.uuid;
this.bindings = $();
this.hoverable = $();
share/js/jquery-ui.js view on Meta::CPAN
156815691570157115721573157415751576157715781579158015811582158315841585158615871588
animate: {},
collapsible: false,
event:
"click"
,
header:
"> li > :first-child,> :not(li):even"
,
heightStyle:
"auto"
,
icons: {
activeHeader:
"ui-icon-triangle-1-s"
,
header:
"ui-icon-triangle-1-e"
},
// callbacks
activate: null,
beforeActivate: null
},
hideProps: {
borderTopWidth:
"hide"
,
borderBottomWidth:
"hide"
,
paddingTop:
"hide"
,
paddingBottom:
"hide"
,
height:
"hide"
share/js/jquery-ui.js view on Meta::CPAN
214621472148214921502151215221532154215521562157215821592160216121622163216421652166
submenu:
"ui-icon-carat-1-e"
},
items:
"> *"
,
menus:
"ul"
,
position: {
my
:
"left-1 top"
,
at:
"right top"
},
role:
"menu"
,
// callbacks
blur: null,
focus: null,
select
: null
},
_create: function() {
this.activeMenu = this.element;
// Flag used to prevent firing of the click handler
// as the event bubbles up through nested menus
share/js/jquery-ui.js view on Meta::CPAN
277627772778277927802781278227832784278527862787278827892790279127922793279427952796
autoFocus: false,
delay: 300,
minLength: 1,
position: {
my
:
"left top"
,
at:
"left bottom"
,
collision:
"none"
},
source: null,
// callbacks
change: null,
close
: null,
focus: null,
open
: null,
response: null,
search: null,
select
: null
},
requestIndex: 0,
share/js/jquery-ui.js view on Meta::CPAN
587058715872587358745875587658775878587958805881588258835884588558865887588858895890
scope:
"default"
,
scroll: true,
scrollSensitivity: 20,
scrollSpeed: 20,
snap: false,
snapMode:
"both"
,
snapTolerance: 20,
stack: false,
zIndex: false,
// callbacks
drag: null,
start: null,
stop: null
},
_create: function() {
if
( this.options.helper ===
"original"
) {
this._setPositionRelative();
}
if
(this.options.addClasses){
share/js/jquery-ui.js view on Meta::CPAN
602160226023602460256026602760286029603060316032603360346035603660376038603960406041this.originalPosition = this.position = this._generatePosition( event, false );
this.originalPageX = event.pageX;
this.originalPageY = event.pageY;
//Adjust the mouse offset relative to the helper
if
"cursorAt"
is supplied
(o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));
//Set a containment
if
given
in the options
this._setContainment();
//Trigger event + callbacks
if
(this._trigger(
"start"
, event) === false) {
this._clear();
return
false;
}
//Recache the helper size
this._cacheHelperProportions();
//Prepare the droppable offsets
if
($.ui.ddmanager && !o.dropBehaviour) {
share/js/jquery-ui.js view on Meta::CPAN
607460756076607760786079608060816082608360846085608660876088608960906091609260936094_mouseDrag: function(event, noPropagation) {
//
reset
any necessary cached properties (see
#5009)
if
( this.hasFixedAncestor ) {
this.offset.parent = this._getParentOffset();
}
//Compute the helpers position
this.position = this._generatePosition( event, true );
this.positionAbs = this._convertPositionTo(
"absolute"
);
if
(!noPropagation) {
var ui = this._uiHash();
if
(this._trigger(
"drag"
, event, ui) === false) {
this._mouseUp({});
return
false;
}
this.position = ui.position;
}
this.helper[ 0 ].style.left = this.position.left +
"px"
;
share/js/jquery-ui.js view on Meta::CPAN
665766586659666066616662666366646665666666676668666966706671667266736674667566766677
// Inform draggable that the helper is in a valid drop zone,
// used solely in the revert option to handle
"valid/invalid"
.
draggable.dropped = sortable.element;
// Need to refreshPositions of all sortables in the case that
// adding to one sortable changes the location of the other sortables (
#9675)
$.
each
( draggable.sortables, function() {
this.refreshPositions();
});
// hack so receive/update callbacks work (mostly)
draggable.currentItem = draggable.element;
sortable.fromOutside = draggable;
}
if
( sortable.currentItem ) {
sortable._mouseDrag( event );
// Copy the sortable
's position because the draggable'
s can potentially reflect
// a relative position,
while
sortable is always absolute, which the dragged
// element
has
now become. (
#8809)
ui.position = sortable.position;
share/js/jquery-ui.js view on Meta::CPAN
698069816982698369846985698669876988698969906991699269936994699569966997699869997000
grid: false,
handles:
"e,s,se"
,
helper: false,
maxHeight: null,
maxWidth: null,
minHeight: 10,
minWidth: 10,
// See
#7960
zIndex: 90,
// callbacks
resize: null,
start: null,
stop: null
},
_num: function( value ) {
return
parseInt( value, 10 ) || 0;
},
_isNumber: function( value ) {
share/js/jquery-ui.js view on Meta::CPAN
813081318132813381348135813681378138813981408141814281438144814581468147814881498150
if
( topOffset < 0 ) {
$( this ).css(
"top"
,
pos
.top - topOffset );
}
}
},
resizable: true,
show: null,
title: null,
width: 300,
// callbacks
beforeClose: null,
close
: null,
drag: null,
dragStart: null,
dragStop: null,
focus: null,
open
: null,
resize: null,
resizeStart: null,
resizeStop: null
share/js/jquery-ui.js view on Meta::CPAN
896489658966896789688969897089718972897389748975897689778978897989808981898289838984widgetEventPrefix:
"drop"
,
options: {
accept
:
"*"
,
activeClass: false,
addClasses: true,
greedy: false,
hoverClass: false,
scope:
"default"
,
tolerance:
"intersect"
,
// callbacks
activate: null,
deactivate: null,
drop: null,
out: null,
over: null
},
_create: function() {
var proportions,
o = this.options,
share/js/jquery-ui.js view on Meta::CPAN
119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945var selectable = $.widget(
"ui.selectable"
, $.ui.mouse, {
version:
"1.11.4"
,
options: {
appendTo:
"body"
,
autoRefresh: true,
distance: 0,
filter:
"*"
,
tolerance:
"touch"
,
// callbacks
selected: null,
selecting: null,
start: null,
stop: null,
unselected: null,
unselecting: null
},
_create: function() {
var selectees,
that = this;
share/js/jquery-ui.js view on Meta::CPAN
122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224
icons: {
button:
"ui-icon-triangle-1-s"
},
position: {
my
:
"left top"
,
at:
"left bottom"
,
collision:
"none"
},
width: null,
// callbacks
change: null,
close
: null,
focus: null,
open
: null,
select
: null
},
_create: function() {
var selectmenuId = this.element.uniqueId().attr(
"id"
);
this.ids = {
share/js/jquery-ui.js view on Meta::CPAN
1280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821
animate: false,
distance: 0,
max: 100,
min: 0,
orientation:
"horizontal"
,
range: false,
step: 1,
value: 0,
values
: null,
// callbacks
change: null,
slide: null,
start: null,
stop: null
},
// number of pages in a slider
// (how many
times
can you page up/down to go through the whole range)
numPages: 5,
share/js/jquery-ui.js view on Meta::CPAN
135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537opacity: false,
placeholder: false,
revert: false,
scroll: true,
scrollSensitivity: 20,
scrollSpeed: 20,
scope:
"default"
,
tolerance:
"intersect"
,
zIndex: 1000,
// callbacks
activate: null,
beforeStop: null,
change: null,
deactivate: null,
out: null,
over: null,
receive: null,
remove: null,
sort
: null,
start: null,
share/js/jquery-ui.js view on Meta::CPAN
137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759
this._storedZIndex = this.helper.css(
"zIndex"
);
}
this.helper.css(
"zIndex"
, o.zIndex);
}
//Prepare scrolling
if
(this.scrollParent[0] !== this.document[0] && this.scrollParent[0].tagName !==
"HTML"
) {
this.overflowOffset = this.scrollParent.offset();
}
//Call callbacks
this._trigger(
"start"
, event, this._uiHash());
//Recache the helper size
if
(!this._preserveHelperProportions) {
this._cacheHelperProportions();
}
//Post
"activate"
events to possible containers
if
( !noActivation ) {
share/js/jquery-ui.js view on Meta::CPAN
138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905
}
//Post events to containers
this._contactContainers(event);
//Interconnect
with
droppables
if
($.ui.ddmanager) {
$.ui.ddmanager.drag(this, event);
}
//Call callbacks
this._trigger(
"sort"
, event, this._uiHash());
this.lastPositionAbs = this.positionAbs;
return
false;
},
_mouseStop: function(event, noPropagation) {
if
(!event) {
share/js/jquery-ui.js view on Meta::CPAN
152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319version:
"1.11.4"
,
delay: 300,
options: {
active: null,
collapsible: false,
event:
"click"
,
heightStyle:
"content"
,
hide: null,
show: null,
// callbacks
activate: null,
beforeActivate: null,
beforeLoad: null,
load: null
},
_isLocal: (function() {
var rhash = /
#.*$/;
return
function( anchor ) {
share/js/jquery-ui.js view on Meta::CPAN
161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202
items:
"[title]:not([disabled])"
,
position: {
my
:
"left top+15"
,
at:
"left bottom"
,
collision:
"flipfit flip"
},
show: true,
tooltipClass: null,
track: false,
// callbacks
close
: null,
open
: null
},
_addDescribedBy: function( elem, id ) {
var describedby = (elem.attr(
"aria-describedby"
) ||
""
).
split
( /\s+/ );
describedby.
push
( id );
elem
.data(
"ui-tooltip-id"
, id )
.attr(
"aria-describedby"
, $.trim( describedby.
join
(
" "
) ) );
share/js/jquery.js view on Meta::CPAN
312931303131313231333134313531363137313831393140314131423143314431453146314731483149// End of the loop
when
firing
firingLength,
// Index of currently firing callback (modified by remove
if
needed)
firingIndex,
// First callback to fire (used internally by add and fireWith)
firingStart,
// Actual callback list
list = [],
// Stack of fire calls
for
repeatable lists
stack = !options.once && [],
// Fire callbacks
fire = function( data ) {
memory = options.memory && data;
fired = true;
firingIndex = firingStart || 0;
firingStart = 0;
firingLength = list.
length
;
firing = true;
for
( ; list && firingIndex < firingLength; firingIndex++ ) {
if
( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
memory = false; // To prevent further calls using add
share/js/jquery.js view on Meta::CPAN
315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196
}
}
else
if
( memory ) {
list = [];
}
else
{
self.disable();
}
}
},
// Actual Callbacks object
self = {
// Add a callback or a collection of callbacks to the list
add: function() {
if
( list ) {
// First, we save the current
length
var start = list.
length
;
(function add( args ) {
jQuery.
each
( args, function( _, arg ) {
var type = jQuery.type( arg );
if
( type ===
"function"
) {
if
( !options.unique || !self.
has
( arg ) ) {
list.
push
( arg );
}
}
else
if
( arg && arg.
length
&& type !==
"string"
) {
// Inspect recursively
add( arg );
}
});
})( arguments );
// Do we need to add the callbacks to the
// current firing batch?
if
( firing ) {
firingLength = list.
length
;
// With memory,
if
we're not firing then
// we should call right away
}
else
if
( memory ) {
firingStart = start;
fire( memory );
}
}
share/js/jquery.js view on Meta::CPAN
3211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235
if
(
index
<= firingIndex ) {
firingIndex--;
}
}
}
});
}
return
this;
},
// Check
if
a
given
callback is in the list.
// If
no
argument is
given
,
return
whether or not list
has
callbacks attached.
has
: function( fn ) {
return
fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.
length
);
},
// Remove all callbacks from the list
empty: function() {
list = [];
firingLength = 0;
return
this;
},
// Have the list
do
nothing anymore
disable: function() {
list = stack = memory = undefined;
return
this;
},
share/js/jquery.js view on Meta::CPAN
324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280
stack = undefined;
if
( !memory ) {
self.disable();
}
return
this;
},
// Is it locked?
locked: function() {
return
!stack;
},
// Call all callbacks
with
the
given
context and arguments
fireWith: function( context, args ) {
if
( list && ( !fired || stack ) ) {
args = args || [];
args = [ context, args.slice ? args.slice() : args ];
if
( firing ) {
stack.
push
( args );
}
else
{
fire( args );
}
}
return
this;
},
// Call all the callbacks
with
the
given
arguments
fire: function() {
self.fireWith( this, arguments );
return
this;
},
// To know
if
the callbacks have already been called at least once
fired: function() {
return
!!fired;
}
};
return
self;
};
jQuery.extend({
share/js/jquery.js view on Meta::CPAN
740774087409741074117412741374147415741674177418741974207421742274237424742574267427
}
jQuery.fx.timer(
jQuery.extend( tick, {
elem: elem,
anim: animation,
queue: animation.opts.queue
})
);
// attach callbacks from options
return
animation.progress( animation.opts.progress )
.done( animation.opts.done, animation.opts.complete )
.fail( animation.opts.fail )
.always( animation.opts.always );
}
jQuery.Animation = jQuery.extend( Animation, {
tweener: function( props, callback ) {
if
( jQuery.isFunction( props ) ) {
callback = props;
share/js/jquery.js view on Meta::CPAN
754575467547754875497550755175527553755475557556755775587559756075617562756375647565
for
(
index
= timers.
length
;
index
--; ) {
if
( timers[
index
].elem === this && (type == null || timers[
index
].queue === type) ) {
timers[
index
].anim.stop( gotoEnd );
dequeue = false;
timers.
splice
(
index
, 1 );
}
}
// start the
next
in the queue
if
the
last
step wasn't forced
// timers currently will call their complete callbacks, which will dequeue
// but only
if
they were gotoEnd
if
( dequeue || !gotoEnd ) {
jQuery.dequeue( this, type );
}
});
},
finish: function( type ) {
if
( type !== false ) {
type = type ||
"fx"
;
}
share/js/jquery.js view on Meta::CPAN
898189828983898489858986898789888989899089918992899389948995899689978998899990009001s = jQuery.ajaxSetup( {}, options ),
// Callbacks context
callbackContext = s.context || s,
// Context
for
global events is callbackContext
if
it is a DOM node or jQuery collection
globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
jQuery( callbackContext ) :
jQuery.event,
// Deferreds
deferred = jQuery.Deferred(),
completeDeferred = jQuery.Callbacks(
"once memory"
),
// Status-dependent callbacks
statusCode = s.statusCode || {},
// Headers (they are sent all at once)
requestHeaders = {},
requestHeadersNames = {},
// The jqXHR state
state = 0,
// Default abort message
strAbort =
"canceled"
,
// Fake xhr
jqXHR = {
share/js/jquery.js view on Meta::CPAN
9032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062},
// Overrides response content-type header
overrideMimeType: function( type ) {
if
( !state ) {
s.mimeType = type;
}
return
this;
},
// Status-dependent callbacks
statusCode: function(
map
) {
var code;
if
(
map
) {
if
( state < 2 ) {
for
( code in
map
) {
// Lazy-add the new callback in a way that preserves old ones
statusCode[ code ] = [ statusCode[ code ],
map
[ code ] ];
}
}
else
{
// Execute the appropriate callbacks
jqXHR.always(
map
[ jqXHR.status ] );
}
}
return
this;
},
// Cancel the request
abort: function( statusText ) {
var finalText = statusText || strAbort;
if
( transport ) {
share/js/jquery.js view on Meta::CPAN
917891799180918191829183918491859186918791889189919091919192919391949195919691979198// Allow custom headers/mimetypes and early abort
if
( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
// Abort
if
not done already and
return
return
jqXHR.abort();
}
// aborting is
no
longer a cancellation
strAbort =
"abort"
;
// Install callbacks on deferreds
for
( i in { success: 1, error: 1, complete: 1 } ) {
jqXHR[ i ]( s[ i ] );
}
// Get transport
transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
// If
no
transport, we auto-abort
if
( !transport ) {
done( -1,
"No Transport"
);
share/js/jquery.js view on Meta::CPAN
930993109311931293139314931593169317931893199320932193229323932493259326932793289329jqXHR.status = status;
jqXHR.statusText = ( nativeStatusText || statusText ) +
""
;
// Success/Error
if
( isSuccess ) {
deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
}
else
{
deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
}
// Status-dependent callbacks
jqXHR.statusCode( statusCode );
statusCode = undefined;
if
( fireGlobals ) {
globalEventContext.trigger( isSuccess ?
"ajaxSuccess"
:
"ajaxError"
,
[ jqXHR, s, isSuccess ? success : error ] );
}
// Complete
completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
share/js/jquery.js view on Meta::CPAN
972097219722972397249725972697279728972997309731973297339734973597369737973897399740
};
if
( !options.async ) {
//
if
we're in sync mode we fire the callback
callback();
}
else
if
( xhr.readyState === 4 ) {
// (IE6 & IE7)
if
it's in cache and
has
been
// retrieved directly we need to fire the callback
setTimeout( callback );
}
else
{
// Add to the list of active xhr callbacks
xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
}
},
abort: function() {
if
( callback ) {
callback( undefined, true );
}
}
};
share/js/jquery.js view on Meta::CPAN
985498559856985798589859986098619862986398649865986698679868986998709871987298739874// Default jsonp settings
jQuery.ajaxSetup({
jsonp:
"callback"
,
jsonpCallback: function() {
var callback = oldCallbacks.
pop
() || ( jQuery.expando +
"_"
+ ( nonce++ ) );
this[ callback ] = true;
return
callback;
}
});
// Detect, normalize options and install callbacks
for
jsonp requests
jQuery.ajaxPrefilter(
"json jsonp"
, function( s, originalSettings, jqXHR ) {
var callbackName, overwritten, responseContainer,
jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
"url"
:
typeof s.data ===
"string"
&& !( s.contentType ||
""
).indexOf(
"application/x-www-form-urlencoded"
) && rjsonp.test( s.data ) &&
"data"
);
// Handle iff the expected data type is
"jsonp"
or we have a parameter to set
if
( jsonProp || s.dataTypes[ 0 ] ===
"jsonp"
) {