Cog

 view release on metacpan or  search on metacpan

share/js/jquery-1.11.3.js  view on Meta::CPAN

3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
// 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

3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
                        }
                } 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

3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
                                        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

3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
                                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

7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
        }
 
        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

7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
                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

8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
s = 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

9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
},
 
// 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

9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
// 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

9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
jqXHR.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

9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
                };
 
                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

9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
// 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

540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
$.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

1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
        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

2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
                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

2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
        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

5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
        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

6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
this.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

6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
_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");
 
        //Call plugins and callbacks and use the resulting position if something is returned
        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

6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
        // 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

6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
        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

8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
                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

8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
widgetEventPrefix: "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

11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
var 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

12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
        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

12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
        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

13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
opacity: 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

13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
                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

13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
        }
 
        //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

15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
version: "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

16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
        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

540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
$.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

1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
        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

2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
                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

2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
        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

5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
        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

6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
this.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

6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
_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");
 
        //Call plugins and callbacks and use the resulting position if something is returned
        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

6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
        // 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

6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
        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

8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
                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

8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
widgetEventPrefix: "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

11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
var 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

12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
        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

12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
        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

13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
opacity: 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

13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
                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

13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
        }
 
        //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

15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
version: "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

16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
        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

3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
// 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

3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
                        }
                } 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

3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
                                        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

3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
                                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

7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
        }
 
        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

7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
                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

8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
s = 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

9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
},
 
// 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

9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
// 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

9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
jqXHR.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

9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
                };
 
                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

9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
// 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" ) {



( run in 0.300 second using v1.01-cache-2.11-cpan-4e96b696675 )