File manager - Edit - /home/autoph/public_html/portal/ajs/vendors/bower_components/oclazyload/dist/modules/ocLazyLoad.loaders.cssLoader.js
Back
(function (angular) { 'use strict'; angular.module('oc.lazyLoad').config(["$provide", function ($provide) { $provide.decorator('$ocLazyLoad', ["$delegate", "$q", function ($delegate, $q) { /** * cssLoader function * @type Function * @param paths array list of css files to load * @param callback to call when everything is loaded. We use a callback and not a promise * @param params object config parameters * because the user can overwrite cssLoader and it will probably not use promises :( */ $delegate.cssLoader = function (paths, callback, params) { var promises = []; angular.forEach(paths, function (path) { promises.push($delegate.buildElement('css', path, params)); }); $q.all(promises).then(function () { callback(); }, function (err) { callback(err); }); }; $delegate.cssLoader.ocLazyLoadLoader = true; return $delegate; }]); }]); })(angular);
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings