Skip to content

Commit f030a63

Browse files
committed
More work
1 parent 5d060ea commit f030a63

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

beta/emuos/assets/js/mainv2.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,5 @@
11
// noinspection ThisExpressionReferencesGlobalObjectJS,JSUnusedLocalSymbols,DuplicatedCode
22
(function(global) {
3-
// noinspection JSUnusedLocalSymbols,DuplicatedCode
4-
define('optional', [], {
5-
load: function(name, req, onload, config) {
6-
var onLoadSuccess = function(moduleInstance) {
7-
onload(moduleInstance);
8-
};
9-
10-
var onLoadFailure = function(err) {
11-
var failedId = err.requireModules && err.requireModules[0];
12-
global.console.warn('Could not load optional module: ' + failedId);
13-
14-
requirejs.undef(failedId);
15-
16-
// noinspection JSRedundantSwitchStatement
17-
switch (failedId) {
18-
default:
19-
define(failedId, [], function(){return {};});
20-
break;
21-
}
22-
23-
req([failedId], onLoadSuccess);
24-
};
25-
26-
req([name], onLoadSuccess, onLoadFailure);
27-
},
28-
normalize: function (name, normalize) {
29-
return normalize(name);
30-
}
31-
});
32-
333
// noinspection JSFileReferences
344
requirejs.config({
355
paths: $sys.lib,
@@ -51,7 +21,7 @@
5121
requirejs([
5222
'jquery',
5323
'jquery-ui'
54-
], function($, ui, ga) {
24+
], function($, ui) {
5525
$(function() {
5626
var $html = $('html');
5727
var $body = $('body');

0 commit comments

Comments
 (0)