@oat-sa/tao-core-ui 1.57.0 → 1.58.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionbar.js +386 -395
- package/dist/adder.js +21 -19
- package/dist/animable/absorbable/absorbable.js +204 -213
- package/dist/animable/absorbable/css/absorb.css +1 -0
- package/dist/animable/absorbable/css/absorb.css.map +1 -1
- package/dist/animable/pulsable/pulsable.js +168 -177
- package/dist/autocomplete/css/autocomplete.css +1 -0
- package/dist/autocomplete/css/autocomplete.css.map +1 -1
- package/dist/autocomplete.js +68 -66
- package/dist/badge/badge.js +188 -197
- package/dist/badge/css/badge.css +1 -0
- package/dist/badge/css/badge.css.map +1 -1
- package/dist/breadcrumbs.js +275 -284
- package/dist/btngrouper.js +5 -5
- package/dist/bulkActionPopup.js +490 -495
- package/dist/button.js +283 -291
- package/dist/cascadingComboBox.js +249 -258
- package/dist/ckeditor/ckConfigurator.js +42 -20
- package/dist/ckeditor/dtdHandler.js +11 -9
- package/dist/class/selector.js +441 -450
- package/dist/component/resizable.js +1 -1
- package/dist/component/windowed.js +285 -294
- package/dist/component.js +419 -428
- package/dist/contextualPopup.js +417 -426
- package/dist/dashboard.js +300 -309
- package/dist/datalist.js +753 -762
- package/dist/datatable/filterStrategy/multiple.js +1 -1
- package/dist/datatable/filterStrategy/single.js +1 -1
- package/dist/datatable.js +1527 -1550
- package/dist/dateRange/dateRange.js +393 -402
- package/dist/datetime/picker.js +665 -672
- package/dist/deleter.js +368 -377
- package/dist/destination/selector.js +286 -295
- package/dist/dialog/alert.js +3 -3
- package/dist/dialog/confirm.js +1 -1
- package/dist/dialog/confirmDelete.js +216 -225
- package/dist/dialog.js +650 -654
- package/dist/disabler.js +8 -8
- package/dist/documentViewer/providers/pdfViewer/fallback/viewer.js +166 -175
- package/dist/documentViewer/providers/pdfViewer/pdfjs/findBar.js +518 -527
- package/dist/documentViewer/providers/pdfViewer/pdfjs/pageView.js +380 -389
- package/dist/documentViewer/providers/pdfViewer/pdfjs/searchEngine.js +539 -548
- package/dist/documentViewer/providers/pdfViewer/pdfjs/viewer.js +369 -378
- package/dist/documentViewer/providers/pdfViewer.js +184 -193
- package/dist/documentViewer.js +292 -301
- package/dist/dropdown.js +383 -392
- package/dist/durationer.js +5 -5
- package/dist/dynamicComponent.js +597 -598
- package/dist/feedback.js +356 -362
- package/dist/figure/FigureStateActive.js +117 -108
- package/dist/filesender.js +2 -2
- package/dist/filter.js +230 -239
- package/dist/form/dropdownForm.js +355 -357
- package/dist/form/form.js +919 -690
- package/dist/form/simpleForm.js +1 -1
- package/dist/form/validator/renderer.js +233 -235
- package/dist/form/validator/validator.js +257 -189
- package/dist/form/widget/definitions.js +1 -1
- package/dist/form/widget/providers/checkBox.js +254 -259
- package/dist/form/widget/providers/comboBox.js +187 -192
- package/dist/form/widget/providers/default.js +8 -9
- package/dist/form/widget/providers/hidden.js +170 -179
- package/dist/form/widget/providers/hiddenBox.js +262 -267
- package/dist/form/widget/providers/radioBox.js +216 -225
- package/dist/form/widget/providers/textArea.js +187 -196
- package/dist/form/widget/providers/textBox.js +2 -3
- package/dist/form/widget/widget.js +473 -475
- package/dist/formValidator/formValidator.js +1 -1
- package/dist/formValidator/highlighters/message.js +1 -1
- package/dist/generis/form/form.js +314 -323
- package/dist/generis/validator/validator.js +209 -218
- package/dist/generis/widget/checkBox/checkBox.js +218 -227
- package/dist/generis/widget/comboBox/comboBox.js +179 -188
- package/dist/generis/widget/hiddenBox/hiddenBox.js +220 -229
- package/dist/generis/widget/textBox/textBox.js +169 -178
- package/dist/generis/widget/widget.js +246 -255
- package/dist/groupedComboBox.js +222 -231
- package/dist/groupvalidator.js +2 -2
- package/dist/highlighter.js +967 -958
- package/dist/image/ImgStateActive/helper.js +7 -5
- package/dist/image/ImgStateActive/initHelper.js +49 -43
- package/dist/image/ImgStateActive/initMediaEditor.js +24 -20
- package/dist/image/ImgStateActive/mediaSizer.js +14 -12
- package/dist/image/ImgStateActive.js +72 -70
- package/dist/incrementer.js +6 -6
- package/dist/inplacer.js +6 -6
- package/dist/itemButtonList/css/item-button-list.css +1 -0
- package/dist/itemButtonList/css/item-button-list.css.map +1 -1
- package/dist/itemButtonList.js +439 -435
- package/dist/keyNavigation/navigableDomElement.js +51 -38
- package/dist/keyNavigation/navigator.js +85 -70
- package/dist/listbox.js +460 -469
- package/dist/liststyler.js +8 -8
- package/dist/loadingButton/loadingButton.js +209 -218
- package/dist/lock.js +476 -485
- package/dist/login/login.js +475 -484
- package/dist/maths/calculator/basicCalculator.js +235 -244
- package/dist/maths/calculator/calculatorComponent.js +3 -3
- package/dist/maths/calculator/core/board.js +772 -781
- package/dist/maths/calculator/core/expression.js +476 -485
- package/dist/maths/calculator/core/labels.js +228 -237
- package/dist/maths/calculator/core/tokenizer.js +1 -1
- package/dist/maths/calculator/core/tokens.js +163 -170
- package/dist/maths/calculator/plugins/keyboard/templateKeyboard/templateKeyboard.js +244 -253
- package/dist/maths/calculator/plugins/screen/simpleScreen/simpleScreen.js +279 -288
- package/dist/maths/calculator/scientificCalculator.js +327 -336
- package/dist/mediaEditor/mediaEditorComponent.js +238 -245
- package/dist/mediaEditor/plugins/mediaAlignment/helper.js +7 -7
- package/dist/mediaEditor/plugins/mediaAlignment/mediaAlignmentComponent.js +229 -235
- package/dist/mediaEditor/plugins/mediaDimension/mediaDimensionComponent.js +580 -589
- package/dist/mediaplayer/players/html5.js +666 -675
- package/dist/mediaplayer/players/youtube.js +419 -424
- package/dist/mediaplayer/support.js +11 -10
- package/dist/mediaplayer/utils/reminder.js +14 -13
- package/dist/mediaplayer/utils/timeObserver.js +10 -11
- package/dist/mediaplayer/youtubeManager.js +164 -145
- package/dist/mediaplayer.js +1565 -1520
- package/dist/mediasizer.js +669 -678
- package/dist/modal.js +10 -17
- package/dist/pageSizeSelector.js +219 -228
- package/dist/pagination/providers/pages.js +280 -289
- package/dist/pagination/providers/simple.js +192 -201
- package/dist/previewer.js +30 -30
- package/dist/progressbar.js +4 -4
- package/dist/report.js +347 -356
- package/dist/resource/filters.js +271 -280
- package/dist/resource/list.js +1264 -1273
- package/dist/resource/selector.js +865 -874
- package/dist/resource/tree.js +1483 -1492
- package/dist/resourcemgr/fileBrowser.js +564 -569
- package/dist/resourcemgr/filePreview.js +16 -16
- package/dist/resourcemgr/fileSelector.js +515 -524
- package/dist/resourcemgr/util/updatePermissions.js +2 -2
- package/dist/resourcemgr.js +306 -315
- package/dist/searchModal/advancedSearch.js +796 -767
- package/dist/searchModal.js +597 -549
- package/dist/switch/switch.js +298 -307
- package/dist/tabs.js +598 -575
- package/dist/taskQueue/status.js +312 -321
- package/dist/taskQueue/table.js +375 -384
- package/dist/taskQueue/taskQueueModel.js +488 -472
- package/dist/taskQueueButton/taskable.js +264 -273
- package/dist/taskQueueButton/treeButton.js +189 -198
- package/dist/themeLoader.js +24 -23
- package/dist/themes.js +1 -1
- package/dist/toggler.js +3 -3
- package/dist/tooltip.js +295 -304
- package/dist/transformer.js +2 -2
- package/dist/tristateCheckboxGroup.js +311 -320
- package/dist/uploader.js +687 -696
- package/dist/validator/Report.js +1 -1
- package/dist/validator/Validator.js +3 -3
- package/dist/validator/validators.js +9 -9
- package/dist/validator.js +240 -230
- package/dist/waitForMedia.js +1 -1
- package/package.json +3 -3
- package/scss/ckeditor/skins/tao/scss/inc/_menu.scss +51 -27
- package/scss/ckeditor/skins/tao/scss/inc/_panel.scss +16 -5
- package/scss/ckeditor/skins/tao/scss/inc/_richcombo.scss +0 -2
- package/scss/ckeditor/skins/tao/scss/inc/_toolbar.scss +15 -3
- package/src/animable/absorbable/css/absorb.css +1 -0
- package/src/animable/absorbable/css/absorb.css.map +1 -1
- package/src/autocomplete/css/autocomplete.css +1 -0
- package/src/autocomplete/css/autocomplete.css.map +1 -1
- package/src/badge/css/badge.css +1 -0
- package/src/badge/css/badge.css.map +1 -1
- package/src/ckeditor/ckConfigurator.js +24 -1
- package/src/itemButtonList/css/item-button-list.css +1 -0
- package/src/itemButtonList/css/item-button-list.css.map +1 -1
- package/scss/.DS_Store +0 -0
- package/src/.DS_Store +0 -0
|
@@ -26,24 +26,24 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
26
26
|
* Cache original config
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
var originalConfig = _.cloneDeep(window.CKEDITOR.config);
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
var moduleConfig = module.config();
|
|
32
32
|
|
|
33
33
|
function getUserLanguage() {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
var documentLang = window.document.documentElement.getAttribute('lang');
|
|
35
|
+
var documentLocale = documentLang && documentLang.split('-')[0];
|
|
36
36
|
return documentLocale;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
var lang = getUserLanguage();
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
var ckConfigurator = function () {
|
|
42
42
|
/**
|
|
43
43
|
* Toolbar presets that you normally never would need to change, they can however be overridden with options.toolbar.
|
|
44
44
|
* The argument 'toolbarType' determines which toolbar to use
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
var toolbarPresets = {
|
|
47
47
|
inline: [{
|
|
48
48
|
name: 'basicstyles',
|
|
49
49
|
items: ['Bold', 'Italic', 'Subscript', 'Superscript']
|
|
@@ -53,6 +53,9 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
53
53
|
}, {
|
|
54
54
|
name: 'links',
|
|
55
55
|
items: ['Link']
|
|
56
|
+
}, {
|
|
57
|
+
name: 'language',
|
|
58
|
+
items: ['Language']
|
|
56
59
|
}],
|
|
57
60
|
flow: [{
|
|
58
61
|
name: 'basicstyles',
|
|
@@ -63,6 +66,9 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
63
66
|
}, {
|
|
64
67
|
name: 'links',
|
|
65
68
|
items: ['Link']
|
|
69
|
+
}, {
|
|
70
|
+
name: 'language',
|
|
71
|
+
items: ['Language']
|
|
66
72
|
}],
|
|
67
73
|
block: [{
|
|
68
74
|
name: 'basicstyles',
|
|
@@ -73,6 +79,9 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
73
79
|
}, {
|
|
74
80
|
name: 'links',
|
|
75
81
|
items: ['Link']
|
|
82
|
+
}, {
|
|
83
|
+
name: 'language',
|
|
84
|
+
items: ['Language']
|
|
76
85
|
}, {
|
|
77
86
|
name: 'styles',
|
|
78
87
|
items: ['Format']
|
|
@@ -129,6 +138,9 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
129
138
|
}, {
|
|
130
139
|
name: 'insert',
|
|
131
140
|
items: ['Link', 'SpecialChar']
|
|
141
|
+
}, {
|
|
142
|
+
name: 'language',
|
|
143
|
+
items: ['Language']
|
|
132
144
|
}],
|
|
133
145
|
table: [{
|
|
134
146
|
name: 'basicstyles',
|
|
@@ -142,18 +154,21 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
142
154
|
}, {
|
|
143
155
|
name: 'paragraph',
|
|
144
156
|
items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']
|
|
157
|
+
}, {
|
|
158
|
+
name: 'language',
|
|
159
|
+
items: ['Language']
|
|
145
160
|
}]
|
|
146
161
|
};
|
|
147
162
|
/**
|
|
148
163
|
* defaults for editor configuration
|
|
149
164
|
*/
|
|
150
165
|
|
|
151
|
-
|
|
166
|
+
var ckConfigDefault = {
|
|
152
167
|
disableAutoInline: true,
|
|
153
168
|
entities: false,
|
|
154
169
|
entities_processNumerical: true,
|
|
155
170
|
autoParagraph: false,
|
|
156
|
-
extraPlugins: 'confighelper',
|
|
171
|
+
extraPlugins: 'confighelper, taolanguage',
|
|
157
172
|
floatSpaceDockedOffsetY: 0,
|
|
158
173
|
forcePasteAsPlainText: true,
|
|
159
174
|
skin: 'tao',
|
|
@@ -189,8 +204,8 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
189
204
|
*/
|
|
190
205
|
|
|
191
206
|
|
|
192
|
-
|
|
193
|
-
|
|
207
|
+
var _updatePlugins = function _updatePlugins(ckConfig, positionedPlugins) {
|
|
208
|
+
var itCnt,
|
|
194
209
|
tbCnt = ckConfig.toolbar.length,
|
|
195
210
|
itLen,
|
|
196
211
|
method,
|
|
@@ -205,8 +220,8 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
205
220
|
positionedPlugins = positionedPlugins || {}; // add positioned plugins to extraPlugins and let CKEDITOR take care of their registration
|
|
206
221
|
|
|
207
222
|
ckConfig.extraPlugins = function (positionedPluginArr, extraPlugins) {
|
|
208
|
-
|
|
209
|
-
|
|
223
|
+
var pluginIndex = positionedPluginArr.length;
|
|
224
|
+
var extraPluginArr = extraPlugins.split(',');
|
|
210
225
|
|
|
211
226
|
while (pluginIndex--) {
|
|
212
227
|
positionedPluginArr[pluginIndex] = positionedPluginArr[pluginIndex].toLowerCase();
|
|
@@ -230,7 +245,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
230
245
|
|
|
231
246
|
for (plugin in positionedPlugins) {
|
|
232
247
|
method = function (pluginProps) {
|
|
233
|
-
|
|
248
|
+
var propIndex = pluginProps.length;
|
|
234
249
|
|
|
235
250
|
while (propIndex--) {
|
|
236
251
|
if (pluginProps[propIndex].indexOf('insert') === 0 || pluginProps[propIndex] === 'replace') {
|
|
@@ -284,7 +299,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
284
299
|
}
|
|
285
300
|
};
|
|
286
301
|
|
|
287
|
-
|
|
302
|
+
var _switchDtd = function _switchDtd(dtdMode) {
|
|
288
303
|
dtdHandler.setMode(dtdMode);
|
|
289
304
|
window.CKEDITOR.dtd = dtdHandler.getDtd();
|
|
290
305
|
};
|
|
@@ -304,18 +319,19 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
304
319
|
* @param {Boolean} [options.underline] - enables the underline plugin
|
|
305
320
|
* @param {Boolean} [options.highlight] - enables the highlight plugin
|
|
306
321
|
* @param {Boolean} [options.mathJax] - enables the mathJax plugin
|
|
322
|
+
* @param {Boolean} [options.horizontalRule] - enables the horizontalRule plugin
|
|
307
323
|
* @param {String} [options.removePlugins] - a coma-separated list of plugins that should not be loaded: 'plugin1,plugin2,plugin3'
|
|
308
324
|
*
|
|
309
325
|
* @see http://docs.ckeditor.com/#!/api/CKEDITOR.config
|
|
310
326
|
*/
|
|
311
327
|
|
|
312
328
|
|
|
313
|
-
|
|
314
|
-
|
|
329
|
+
var getConfig = function getConfig(editor, toolbarType, options) {
|
|
330
|
+
var toolbar, toolbars, config, dtdMode; // This is different from CKEDITOR.config.extraPlugins since it also allows to position the button
|
|
315
331
|
// Valid positioning keys are insertAfter | insertBefore | replace followed by the button name, e.g. 'Anchor'
|
|
316
332
|
// separator bool, defaults to false
|
|
317
333
|
|
|
318
|
-
|
|
334
|
+
var positionedPlugins = {};
|
|
319
335
|
|
|
320
336
|
if (toolbarType === 'reset') {
|
|
321
337
|
return originalConfig;
|
|
@@ -326,7 +342,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
326
342
|
toolbars = _.clone(toolbarPresets, true);
|
|
327
343
|
dtdMode = options.dtdMode || 'html';
|
|
328
344
|
|
|
329
|
-
|
|
345
|
+
var ckConfig = _.clone(ckConfigDefault, true); // modify DTD to either comply with QTI or XHTML
|
|
330
346
|
|
|
331
347
|
|
|
332
348
|
if (dtdMode === 'qti' || toolbarType.indexOf('qti') === 0) {
|
|
@@ -380,6 +396,12 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
380
396
|
insertAfter: 'SpecialChar'
|
|
381
397
|
};
|
|
382
398
|
}
|
|
399
|
+
|
|
400
|
+
if (options.horizontalRule && ['block', 'inline'].includes(toolbarType)) {
|
|
401
|
+
positionedPlugins.HorizontalRule = {
|
|
402
|
+
insertAfter: 'TaoTooltip'
|
|
403
|
+
};
|
|
404
|
+
}
|
|
383
405
|
} // if there is a toolbar in the options add it to the set
|
|
384
406
|
|
|
385
407
|
|
|
@@ -430,7 +452,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
430
452
|
}); // This fixes bug #2855. Unfortunately this can be done on the global object only, not on the instance
|
|
431
453
|
|
|
432
454
|
window.CKEDITOR.on('dialogDefinition', function (e) {
|
|
433
|
-
|
|
455
|
+
var linkTypes, wanted, linkIndex;
|
|
434
456
|
|
|
435
457
|
if (e.data.name !== 'link') {
|
|
436
458
|
return;
|
|
@@ -31,7 +31,7 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
31
31
|
* Set DTD mode (qti|html)
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
var setMode = function (mode) {
|
|
34
|
+
var setMode = function setMode(mode) {
|
|
35
35
|
// for the oblivious ones such as myself:
|
|
36
36
|
if (mode.toLowerCase() === 'xhtml') {
|
|
37
37
|
mode = 'html';
|
|
@@ -58,7 +58,7 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
58
58
|
* @returns {Array}
|
|
59
59
|
*/
|
|
60
60
|
|
|
61
|
-
var getParentsOf = function (child) {
|
|
61
|
+
var getParentsOf = function getParentsOf(child) {
|
|
62
62
|
var parents = [],
|
|
63
63
|
element;
|
|
64
64
|
child = _normalizeElement(child);
|
|
@@ -87,7 +87,7 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
var getChildrenOf = function (parent) {
|
|
90
|
+
var getChildrenOf = function getChildrenOf(parent) {
|
|
91
91
|
parent = _normalizeElement(parent);
|
|
92
92
|
|
|
93
93
|
if (parent in dtds[dtdMode]) {
|
|
@@ -105,7 +105,7 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
var isChildOf = function (child, of) {
|
|
108
|
+
var isChildOf = function isChildOf(child, of) {
|
|
109
109
|
return _.contains(getChildrenOf(of), _normalizeElement(child));
|
|
110
110
|
};
|
|
111
111
|
/**
|
|
@@ -117,7 +117,7 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
117
117
|
*/
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
var isParentOf = function (parent, of) {
|
|
120
|
+
var isParentOf = function isParentOf(parent, of) {
|
|
121
121
|
return _.contains(getParentsOf(of), _normalizeElement(parent));
|
|
122
122
|
};
|
|
123
123
|
/**
|
|
@@ -127,7 +127,7 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var getDtd = function () {
|
|
130
|
+
var getDtd = function getDtd() {
|
|
131
131
|
return dtds[dtdMode];
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
@@ -137,7 +137,7 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
137
137
|
*/
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
var getMode = function () {
|
|
140
|
+
var getMode = function getMode() {
|
|
141
141
|
return dtdMode;
|
|
142
142
|
};
|
|
143
143
|
/**
|
|
@@ -177,7 +177,7 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
177
177
|
|
|
178
178
|
dtds.html = function () {
|
|
179
179
|
var X = _.extend,
|
|
180
|
-
Y = function (source, removed) {
|
|
180
|
+
Y = function Y(source, removed) {
|
|
181
181
|
var substracted = _.cloneDeep(source),
|
|
182
182
|
i,
|
|
183
183
|
name;
|
|
@@ -185,7 +185,9 @@ define(['lodash'], function (_) { 'use strict';
|
|
|
185
185
|
for (i = 1; i < arguments.length; i++) {
|
|
186
186
|
removed = arguments[i];
|
|
187
187
|
|
|
188
|
-
for (name in removed)
|
|
188
|
+
for (name in removed) {
|
|
189
|
+
delete substracted[name];
|
|
190
|
+
}
|
|
189
191
|
}
|
|
190
192
|
|
|
191
193
|
return substracted;
|