Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
editor.get('document').on('keydown', function(e) {
_$jscoverage['/justify-right.js'].functionData[7]++;
_$jscoverage['/justify-right.js'].lineData[51]++;
if (visit3_51_1(e.ctrlKey && visit4_51_2(e.keyCode === Node.KeyCode.R))) {
_$jscoverage['/justify-right.js'].lineData[52]++;
editor.execCommand('justifyRight');
_$jscoverage['/justify-right.js'].lineData[53]++;
e.preventDefault();
}
});
});
KISSY.add(function(S, require) {
_$jscoverage['/menu/submenu.js'].functionData[0]++;
_$jscoverage['/menu/submenu.js'].lineData[7]++;
var util = require('util');
_$jscoverage['/menu/submenu.js'].lineData[8]++;
var Node = require('node');
_$jscoverage['/menu/submenu.js'].lineData[9]++;
var SubMenuTpl = require('./submenu-xtpl');
_$jscoverage['/menu/submenu.js'].lineData[10]++;
var MenuItem = require('./menuitem');
_$jscoverage['/menu/submenu.js'].lineData[11]++;
var ContentBox = require('component/extension/content-box');
_$jscoverage['/menu/submenu.js'].lineData[13]++;
var KeyCode = Node.KeyCode, MENU_DELAY = 0.15;
_$jscoverage['/menu/submenu.js'].lineData[16]++;
function afterHighlightedChange(e) {
_$jscoverage['/menu/submenu.js'].functionData[1]++;
_$jscoverage['/menu/submenu.js'].lineData[17]++;
var target = e.target, self = this;
_$jscoverage['/menu/submenu.js'].lineData[20]++;
if (visit49_20_1(visit50_20_2(target !== self) && visit51_20_3(target.isMenuItem && e.newVal))) {
_$jscoverage['/menu/submenu.js'].lineData[21]++;
self.clearHidePopupMenuTimers();
_$jscoverage['/menu/submenu.js'].lineData[22]++;
if (visit52_22_1(!self.get('highlighted'))) {
_$jscoverage['/menu/submenu.js'].lineData[23]++;
self.set('highlighted', true);
_$jscoverage['/menu/submenu.js'].lineData[25]++;
target.set('highlighted', false);
_$jscoverage['/menu/submenu.js'].lineData[26]++;
sync: 0,
render: 1,
parse: function() {
_$jscoverage['/overlay/dialog.js'].functionData[15]++;
_$jscoverage['/overlay/dialog.js'].lineData[217]++;
return this.get('footer').html();
}},
closable: {
value: true},
focusable: {
value: true},
escapeToClose: {
value: true}},
xclass: 'dialog'});
_$jscoverage['/overlay/dialog.js'].lineData[269]++;
var KEY_TAB = Node.KeyCode.TAB;
_$jscoverage['/overlay/dialog.js'].lineData[272]++;
function trapFocus(e) {
_$jscoverage['/overlay/dialog.js'].functionData[16]++;
_$jscoverage['/overlay/dialog.js'].lineData[273]++;
var self = this, keyCode = e.keyCode;
_$jscoverage['/overlay/dialog.js'].lineData[276]++;
if (visit14_276_1(keyCode !== KEY_TAB)) {
_$jscoverage['/overlay/dialog.js'].lineData[277]++;
return;
}
_$jscoverage['/overlay/dialog.js'].lineData[279]++;
var $el = self.$el;
_$jscoverage['/overlay/dialog.js'].lineData[283]++;
var node = Node.all(e.target);
_$jscoverage['/overlay/dialog.js'].lineData[288]++;
var lastFocusItem = $el.last();
KISSY.add(function(S, require) {
_$jscoverage['/toolbar.js'].functionData[0]++;
_$jscoverage['/toolbar.js'].lineData[7]++;
var Container = require('component/container');
_$jscoverage['/toolbar.js'].lineData[8]++;
var DelegateChildrenExtension = require('component/extension/delegate-children');
_$jscoverage['/toolbar.js'].lineData[9]++;
var Node = require('node');
_$jscoverage['/toolbar.js'].lineData[10]++;
var util = require('util');
_$jscoverage['/toolbar.js'].lineData[12]++;
var KeyCode = Node.KeyCode;
_$jscoverage['/toolbar.js'].lineData[14]++;
function getNextEnabledItem(index, direction, self) {
_$jscoverage['/toolbar.js'].functionData[1]++;
_$jscoverage['/toolbar.js'].lineData[15]++;
var children = self.get('children'), count = 0, childrenLength = children.length;
_$jscoverage['/toolbar.js'].lineData[19]++;
if (visit1_19_1(index === undefined)) {
_$jscoverage['/toolbar.js'].lineData[20]++;
if (visit2_20_1(direction === 1)) {
_$jscoverage['/toolbar.js'].lineData[21]++;
index = 0;
} else {
_$jscoverage['/toolbar.js'].lineData[23]++;
index = childrenLength - 1;
}
_$jscoverage['/toolbar.js'].lineData[25]++;
KISSY.add(function(S, require) {
_$jscoverage['/button.js'].functionData[0]++;
_$jscoverage['/button.js'].lineData[7]++;
var util = require('util');
_$jscoverage['/button.js'].lineData[8]++;
var Node = require('node'), Control = require('component/control');
_$jscoverage['/button.js'].lineData[11]++;
var KeyCode = Node.KeyCode;
_$jscoverage['/button.js'].lineData[17]++;
return Control.extend({
isButton: 1,
beforeCreateDom: function(renderData) {
_$jscoverage['/button.js'].functionData[1]++;
_$jscoverage['/button.js'].lineData[21]++;
var self = this;
_$jscoverage['/button.js'].lineData[22]++;
util.mix(renderData.elAttrs, {
role: 'button',
title: renderData.tooltip,
'aria-describedby': renderData.describedby});
_$jscoverage['/button.js'].lineData[27]++;
if (visit1_27_1(renderData.checked)) {
_$jscoverage['/button.js'].lineData[28]++;
renderData.elCls.push(self.getBaseCssClasses('checked'));
KISSY.add(function(S, require) {
_$jscoverage['/combobox/control.js'].functionData[0]++;
_$jscoverage['/combobox/control.js'].lineData[7]++;
var util = require('util');
_$jscoverage['/combobox/control.js'].lineData[8]++;
var logger = S.getLogger('combobox');
_$jscoverage['/combobox/control.js'].lineData[9]++;
var Node = require('node');
_$jscoverage['/combobox/control.js'].lineData[10]++;
var Control = require('component/control');
_$jscoverage['/combobox/control.js'].lineData[11]++;
var ComboboxTpl = require('./combobox-xtpl');
_$jscoverage['/combobox/control.js'].lineData[13]++;
require('menu');
_$jscoverage['/combobox/control.js'].lineData[15]++;
var ComboBox, KeyCode = Node.KeyCode;
_$jscoverage['/combobox/control.js'].lineData[24]++;
ComboBox = Control.extend({
initializer: function() {
_$jscoverage['/combobox/control.js'].functionData[1]++;
_$jscoverage['/combobox/control.js'].lineData[30]++;
this.publish('afterRenderData', {
bubbles: false});
},
_savedValue: null,
bindUI: function() {
_$jscoverage['/combobox/control.js'].functionData[2]++;
_$jscoverage['/combobox/control.js'].lineData[41]++;
var self = this, input = self.get('input');
_$jscoverage['/combobox/control.js'].lineData[44]++;
input.on('input', onValueChange, self);
_$jscoverage['/combobox/control.js'].lineData[54]++;
KISSY.add(function(S, require) {
_$jscoverage['/picker/control.js'].functionData[0]++;
_$jscoverage['/picker/control.js'].lineData[7]++;
var Node = require('node'), GregorianCalendar = require('date/gregorian'), locale = require('i18n!date/picker'), Control = require('component/control'), PickerRender = require('./render'), MonthPanel = require('./month-panel/control');
_$jscoverage['/picker/control.js'].lineData[13]++;
var TapGesture = require('event/gesture/tap');
_$jscoverage['/picker/control.js'].lineData[14]++;
var tap = TapGesture.TAP;
_$jscoverage['/picker/control.js'].lineData[15]++;
var $ = Node.all;
_$jscoverage['/picker/control.js'].lineData[16]++;
var KeyCode = Node.KeyCode;
_$jscoverage['/picker/control.js'].lineData[18]++;
function goStartMonth(self) {
_$jscoverage['/picker/control.js'].functionData[1]++;
_$jscoverage['/picker/control.js'].lineData[19]++;
var next = self.get('value').clone();
_$jscoverage['/picker/control.js'].lineData[20]++;
next.setDayOfMonth(1);
_$jscoverage['/picker/control.js'].lineData[21]++;
self.set('value', next);
}
_$jscoverage['/picker/control.js'].lineData[24]++;
function goEndMonth(self) {
_$jscoverage['/picker/control.js'].functionData[2]++;
_$jscoverage['/picker/control.js'].lineData[25]++;
var next = self.get('value').clone();
_$jscoverage['/picker/control.js'].lineData[26]++;
KISSY.add(function(S, require) {
_$jscoverage['/menu/control.js'].functionData[0]++;
_$jscoverage['/menu/control.js'].lineData[7]++;
var util = require('util');
_$jscoverage['/menu/control.js'].lineData[8]++;
var Node = require('node');
_$jscoverage['/menu/control.js'].lineData[9]++;
var Container = require('component/container');
_$jscoverage['/menu/control.js'].lineData[10]++;
var DelegateChildrenExtension = require('component/extension/delegate-children');
_$jscoverage['/menu/control.js'].lineData[11]++;
var KeyCode = Node.KeyCode;
_$jscoverage['/menu/control.js'].lineData[19]++;
return Container.extend([DelegateChildrenExtension], {
isMenu: 1,
beforeCreateDom: function(renderData) {
_$jscoverage['/menu/control.js'].functionData[1]++;
_$jscoverage['/menu/control.js'].lineData[25]++;
renderData.elAttrs.role = 'menu';
},
bindUI: function() {
_$jscoverage['/menu/control.js'].functionData[2]++;
_$jscoverage['/menu/control.js'].lineData[29]++;
var self = this;
_$jscoverage['/menu/control.js'].lineData[30]++;
self.on('afterHighlightedItemChange', afterHighlightedItemChange, self);
},
_onSetHighlightedItem: function(v, ev) {
KISSY.add(function (S, require) {
var Node = require('node'),
GregorianCalendar = require('date/gregorian'),
locale = require('i18n!date/picker'),
Control = require('component/control'),
MonthPanel = require('./month-panel/control');
var TapGesture = require('event/gesture/tap');
var tap = TapGesture.TAP;
var $ = Node.all;
var KeyCode = Node.KeyCode;
var DateTimeFormat = require('date/format'),
PickerTpl = require('date/picker-xtpl');
var dateRowTplStart = '';
var dateRowTplEnd = '';
var dateCellTpl = '{content}';
var weekNumberCellTpl = '{content}';
var dateTpl = '<a aria-disabled="{disabled}" aria-selected="{selected}" href="#" class="{cls}" tabindex="-1" id="{id}">{content}</a>';
handleKeyDownInternal: function(e) {
_$jscoverage['/overlay/dialog.js'].functionData[5]++;
_$jscoverage['/overlay/dialog.js'].lineData[50]++;
if (visit7_50_1(this.get('escapeToClose') && visit8_51_1(e.keyCode === Node.KeyCode.ESC))) {
_$jscoverage['/overlay/dialog.js'].lineData[52]++;
if (visit9_52_1(!(visit10_52_2(visit11_52_3(e.target.nodeName.toLowerCase() === 'select') && !e.target.disabled)))) {
_$jscoverage['/overlay/dialog.js'].lineData[54]++;
this.close();
_$jscoverage['/overlay/dialog.js'].lineData[55]++;
e.halt();
}
_$jscoverage['/overlay/dialog.js'].lineData[57]++;
return;
}
_$jscoverage['/overlay/dialog.js'].lineData[59]++;
trapFocus.call(this, e);
},
_onSetVisible: function(v, e) {