| Server IP : 54.36.91.62 / Your IP : 216.73.217.94 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/c/o/o/coopiak/amisdesseniors-fr/dijon/components/com_community/assets/postbox/js/ |
Upload File : |
define('sandbox',[],function() {
var jqr = window.joms.jQuery,
und = window.joms._,
bbe = window.joms.Backbone;
// Sandbox object, also serves as a DOM selector.
function Sandbox( selector, context ) {
return jqr( selector, context );
}
// Set Backbone to use default jQuery.
bbe.$ = jqr;
// Filter used Underscore functions.
und.pick( und, [
'each',
'map',
'filter',
'union',
'intersection',
'without',
'bind',
'debounce',
'defer',
'keys',
'extend',
'pick',
'omit',
'isArray',
'isNumber',
'isString',
'isUndefined',
'uniqueId'
]);
// Extend sandbox with events, selected Underscore functions,
// Backbone MVC, and some.
und.extend( Sandbox, bbe.Events, und, {
// MV*
mvc: {
Model: bbe.Model,
Models: bbe.Collection,
View: bbe.View
},
// Ajax helper.
ajax: jqr.ajax,
param: jqr.param,
// NOOP
noop: function() {}
});
// Enable deep-extend via jQuery extend.
Sandbox.__extend = Sandbox.extend;
Sandbox._$extend = jqr.extend;
Sandbox.extend = function() {
var isDeep = arguments[0] === true;
return Sandbox[ isDeep ? '_$extend' : '__extend' ].apply( null, arguments );
};
// Browser detection.
Sandbox.ua = navigator.userAgent;
var ua = Sandbox.ua.toLowerCase();
Sandbox.mobile = !!ua.match( /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i );
Sandbox.webkit = !!ua.match( /webkit/i );
Sandbox.ie = !!ua.match( /msie/i );
Sandbox.ieVersion = Sandbox.ie && +( ua.match( /msie (\d+)\./i )[1] );
// Experimental flag.
Sandbox.xpriment = !Sandbox.ie && 1;
// Publish onclick event.
Sandbox( document.body ).on( 'click', function( e ) {
Sandbox.trigger( 'click', Sandbox( e.target ) );
});
return Sandbox;
});