@oat-sa/tao-core-ui 1.58.1 → 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 +26 -19
- 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 +114 -91
- 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/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 +4 -0
- package/src/itemButtonList/css/item-button-list.css +1 -0
- package/src/itemButtonList/css/item-button-list.css.map +1 -1
- package/src/.DS_Store +0 -0
- package/src/css/basic.css +0 -7826
- package/src/css/basic.css.map +0 -1
- package/src/css/ckeditor/skins/tao/css/dialog.css +0 -950
- package/src/css/ckeditor/skins/tao/css/dialog.css.map +0 -1
- package/src/css/ckeditor/skins/tao/css/editor.css +0 -1850
- package/src/css/ckeditor/skins/tao/css/editor.css.map +0 -1
- package/src/scss/.DS_Store +0 -0
- package/src/scss/basic.scss +0 -16
- package/src/scss/ckeditor/skins/tao/scss/dialog.scss +0 -763
- package/src/scss/ckeditor/skins/tao/scss/editor.scss +0 -111
- package/src/scss/ckeditor/skins/tao/scss/inc/_ck-icons.scss +0 -59
- package/src/scss/ckeditor/skins/tao/scss/inc/_colorpanel.scss +0 -118
- package/src/scss/ckeditor/skins/tao/scss/inc/_elementspath.scss +0 -69
- package/src/scss/ckeditor/skins/tao/scss/inc/_mainui.scss +0 -194
- package/src/scss/ckeditor/skins/tao/scss/inc/_menu.scss +0 -181
- package/src/scss/ckeditor/skins/tao/scss/inc/_panel.scss +0 -200
- package/src/scss/ckeditor/skins/tao/scss/inc/_presets.scss +0 -32
- package/src/scss/ckeditor/skins/tao/scss/inc/_reset.scss +0 -101
- package/src/scss/ckeditor/skins/tao/scss/inc/_richcombo.scss +0 -213
- package/src/scss/ckeditor/skins/tao/scss/inc/_tao.scss +0 -59
- package/src/scss/ckeditor/skins/tao/scss/inc/_toolbar.scss +0 -301
- package/src/scss/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-italic.eot.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-italic.woff.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-regular.eot.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-regular.woff.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold-italic.eot +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold-italic.eot.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold-italic.woff +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold-italic.woff.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold.eot.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold.woff.b64 +0 -1
- package/src/scss/font/tao/tao.eot +0 -0
- package/src/scss/font/tao/tao.svg +0 -235
- package/src/scss/font/tao/tao.ttf +0 -0
- package/src/scss/font/tao/tao.woff +0 -0
- package/src/scss/inc/_base.scss +0 -496
- package/src/scss/inc/_bootstrap.scss +0 -6
- package/src/scss/inc/_buttons.scss +0 -114
- package/src/scss/inc/_colors.scss +0 -88
- package/src/scss/inc/_feedback.scss +0 -150
- package/src/scss/inc/_flex-grid.scss +0 -15
- package/src/scss/inc/_fonts.scss +0 -4
- package/src/scss/inc/_forms.scss +0 -827
- package/src/scss/inc/_functions.scss +0 -283
- package/src/scss/inc/_grid.scss +0 -66
- package/src/scss/inc/_jquery.nouislider.scss +0 -254
- package/src/scss/inc/_normalize.scss +0 -528
- package/src/scss/inc/_report.scss +0 -68
- package/src/scss/inc/_secondary-properties.scss +0 -89
- package/src/scss/inc/_select2.scss +0 -634
- package/src/scss/inc/_toolbars.scss +0 -155
- package/src/scss/inc/_tooltip.scss +0 -312
- package/src/scss/inc/_variables.scss +0 -21
- package/src/scss/inc/base/_highlight.scss +0 -5
- package/src/scss/inc/base/_list-style.scss +0 -59
- package/src/scss/inc/base/_svg.scss +0 -3
- package/src/scss/inc/base/_table.scss +0 -63
- package/src/scss/inc/fonts/_source-sans-pro.scss +0 -29
- package/src/scss/inc/fonts/_tao-icon-classes.scss +0 -226
- package/src/scss/inc/fonts/_tao-icon-def.scss +0 -12
- package/src/scss/inc/fonts/_tao-icon-vars.scss +0 -240
|
@@ -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']
|
|
@@ -163,7 +163,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
163
163
|
* defaults for editor configuration
|
|
164
164
|
*/
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
var ckConfigDefault = {
|
|
167
167
|
disableAutoInline: true,
|
|
168
168
|
entities: false,
|
|
169
169
|
entities_processNumerical: true,
|
|
@@ -204,8 +204,8 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
204
204
|
*/
|
|
205
205
|
|
|
206
206
|
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
var _updatePlugins = function _updatePlugins(ckConfig, positionedPlugins) {
|
|
208
|
+
var itCnt,
|
|
209
209
|
tbCnt = ckConfig.toolbar.length,
|
|
210
210
|
itLen,
|
|
211
211
|
method,
|
|
@@ -220,8 +220,8 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
220
220
|
positionedPlugins = positionedPlugins || {}; // add positioned plugins to extraPlugins and let CKEDITOR take care of their registration
|
|
221
221
|
|
|
222
222
|
ckConfig.extraPlugins = function (positionedPluginArr, extraPlugins) {
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
var pluginIndex = positionedPluginArr.length;
|
|
224
|
+
var extraPluginArr = extraPlugins.split(',');
|
|
225
225
|
|
|
226
226
|
while (pluginIndex--) {
|
|
227
227
|
positionedPluginArr[pluginIndex] = positionedPluginArr[pluginIndex].toLowerCase();
|
|
@@ -245,7 +245,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
245
245
|
|
|
246
246
|
for (plugin in positionedPlugins) {
|
|
247
247
|
method = function (pluginProps) {
|
|
248
|
-
|
|
248
|
+
var propIndex = pluginProps.length;
|
|
249
249
|
|
|
250
250
|
while (propIndex--) {
|
|
251
251
|
if (pluginProps[propIndex].indexOf('insert') === 0 || pluginProps[propIndex] === 'replace') {
|
|
@@ -299,7 +299,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
|
|
302
|
-
|
|
302
|
+
var _switchDtd = function _switchDtd(dtdMode) {
|
|
303
303
|
dtdHandler.setMode(dtdMode);
|
|
304
304
|
window.CKEDITOR.dtd = dtdHandler.getDtd();
|
|
305
305
|
};
|
|
@@ -319,18 +319,19 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
319
319
|
* @param {Boolean} [options.underline] - enables the underline plugin
|
|
320
320
|
* @param {Boolean} [options.highlight] - enables the highlight plugin
|
|
321
321
|
* @param {Boolean} [options.mathJax] - enables the mathJax plugin
|
|
322
|
+
* @param {Boolean} [options.horizontalRule] - enables the horizontalRule plugin
|
|
322
323
|
* @param {String} [options.removePlugins] - a coma-separated list of plugins that should not be loaded: 'plugin1,plugin2,plugin3'
|
|
323
324
|
*
|
|
324
325
|
* @see http://docs.ckeditor.com/#!/api/CKEDITOR.config
|
|
325
326
|
*/
|
|
326
327
|
|
|
327
328
|
|
|
328
|
-
|
|
329
|
-
|
|
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
|
|
330
331
|
// Valid positioning keys are insertAfter | insertBefore | replace followed by the button name, e.g. 'Anchor'
|
|
331
332
|
// separator bool, defaults to false
|
|
332
333
|
|
|
333
|
-
|
|
334
|
+
var positionedPlugins = {};
|
|
334
335
|
|
|
335
336
|
if (toolbarType === 'reset') {
|
|
336
337
|
return originalConfig;
|
|
@@ -341,7 +342,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
341
342
|
toolbars = _.clone(toolbarPresets, true);
|
|
342
343
|
dtdMode = options.dtdMode || 'html';
|
|
343
344
|
|
|
344
|
-
|
|
345
|
+
var ckConfig = _.clone(ckConfigDefault, true); // modify DTD to either comply with QTI or XHTML
|
|
345
346
|
|
|
346
347
|
|
|
347
348
|
if (dtdMode === 'qti' || toolbarType.indexOf('qti') === 0) {
|
|
@@ -395,6 +396,12 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
395
396
|
insertAfter: 'SpecialChar'
|
|
396
397
|
};
|
|
397
398
|
}
|
|
399
|
+
|
|
400
|
+
if (options.horizontalRule && ['block', 'inline'].includes(toolbarType)) {
|
|
401
|
+
positionedPlugins.HorizontalRule = {
|
|
402
|
+
insertAfter: 'TaoTooltip'
|
|
403
|
+
};
|
|
404
|
+
}
|
|
398
405
|
} // if there is a toolbar in the options add it to the set
|
|
399
406
|
|
|
400
407
|
|
|
@@ -445,7 +452,7 @@ define(['jquery', 'lodash', 'ui/ckeditor/dtdHandler', 'ckeditor', 'module'], fun
|
|
|
445
452
|
}); // This fixes bug #2855. Unfortunately this can be done on the global object only, not on the instance
|
|
446
453
|
|
|
447
454
|
window.CKEDITOR.on('dialogDefinition', function (e) {
|
|
448
|
-
|
|
455
|
+
var linkTypes, wanted, linkIndex;
|
|
449
456
|
|
|
450
457
|
if (e.data.name !== 'link') {
|
|
451
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;
|