Skip to content

Commit 2a5b08f

Browse files
committed
Merge remote-tracking branch 'origin/update-deps'
# Conflicts: # dist/font/context-menu-icons.eot # dist/font/context-menu-icons.ttf # dist/font/context-menu-icons.woff # dist/font/context-menu-icons.woff2 # dist/jquery.contextMenu.css # dist/jquery.contextMenu.js # dist/jquery.contextMenu.min.css # dist/jquery.contextMenu.min.css.map # dist/jquery.contextMenu.min.js # dist/jquery.contextMenu.min.js.map # src/sass/icons/_variables.scss
2 parents f4f2259 + e48dc96 commit 2a5b08f

17 files changed

+5473
-135
lines changed

.jscsrc

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"requireParenthesesAroundIIFE": true,
1313
"requireCommaBeforeLineBreak": true,
1414
"requireCamelCaseOrUpperCaseIdentifiers": true,
15-
"requireDotNotation": {
16-
"allExcept": ["snake_case"]
17-
},
15+
"requireDotNotation": true,
1816
"requireSpacesInForStatement": true,
1917
"requireSpaceBetweenArguments": true,
2018
"maximumLineLength": {
@@ -35,9 +33,6 @@
3533
"requireSpacesInFunctionExpression": {
3634
"beforeOpeningCurlyBrace": true
3735
},
38-
"requireSpacesInsideParentheses": {
39-
"all": false
40-
},
4136
"requireSpaceAfterKeywords": [
4237
"if",
4338
"else",
@@ -50,9 +45,7 @@
5045
"catch"
5146
],
5247
"requireSpacesInsideObjectBrackets": "all",
53-
"requireSpacesInsideBrackets": false,
5448
"requireSemicolons": true,
55-
"requireSpacesInConditionalExpression": false,
5649
"requireSpaceAfterBinaryOperators": true,
5750
"requireLineFeedAtFileEnd": true,
5851
"requireSpaceBeforeBinaryOperators": [
@@ -69,7 +62,7 @@
6962
"requireSpacesInNamedFunctionExpression": {
7063
"beforeOpeningCurlyBrace": true
7164
},
72-
"requirePaddingNewLinesBeforeLineComments": false,
65+
"requirePaddingNewLinesBeforeLineComments": true,
7366
"validateLineBreaks": "LF",
7467

7568
"disallowKeywords": [ "with" ],
@@ -87,6 +80,6 @@
8780
"disallowSpaceAfterObjectKeys": true,
8881
"disallowSpaceAfterPrefixUnaryOperators": true,
8982
"disallowSpaceBeforePostfixUnaryOperators": true,
90-
"disallowSpaceBeforeBinaryOperators": [ ",", ":" ],
83+
"disallowSpaceBeforeBinaryOperators": [ "," ],
9184
"disallowMultipleLineBreaks": true
9285
}

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ matrix:
2626

2727

2828
install:
29-
- if [ "$JQUERY" ] ; then nvm install 6 && npm install && npm install jquery@$JQUERY ; fi
29+
- if [ "$JQUERY" ] ; then nvm install 7 && npm install -g yarn && yarn && yarn add jquery@$JQUERY ; fi
3030
- if [ "$DOCUMENTATION" ] ; then cd documentation && composer global require couscous/couscous ; fi
3131

3232
script:
33-
- if [ "$JQUERY" ] ; then npm test ; else /home/travis/.composer/vendor/bin/couscous travis-auto-deploy --php-version=5.5 ; fi
34-
- if [ "$JQUERY" ] && [ "$SAUCE_USERNAME" ] ; then npm run test-sauce ; fi
33+
- if [ "$JQUERY" ] ; then yarn run test ; else /home/travis/.composer/vendor/bin/couscous travis-auto-deploy --php-version=5.5 ; fi
34+
- if [ "$JQUERY" ] && [ "$SAUCE_USERNAME" ] ; then yarn run test-sauce ; fi
3535

3636
deploy:
3737
provider: npm

dist/font/context-menu-icons.eot

0 Bytes
Binary file not shown.

dist/font/context-menu-icons.ttf

0 Bytes
Binary file not shown.

dist/font/context-menu-icons.woff

0 Bytes
Binary file not shown.

dist/font/context-menu-icons.woff2

8 Bytes
Binary file not shown.

dist/jquery.contextMenu.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Licensed under
1313
* MIT License http://www.opensource.org/licenses/mit-license
1414
*
15-
* Date: 2017-09-08T12:13:15.882Z
15+
* Date: 2017-08-30T15:09:51.172Z
1616
*/
1717
@-webkit-keyframes cm-spin {
1818
0% {
@@ -54,8 +54,8 @@
5454
font-style: normal;
5555
font-weight: normal;
5656

57-
src: url("font/context-menu-icons.eot?gbjx");
58-
src: url("font/context-menu-icons.eot?gbjx#iefix") format("embedded-opentype"), url("font/context-menu-icons.woff2?gbjx") format("woff2"), url("font/context-menu-icons.woff?gbjx") format("woff"), url("font/context-menu-icons.ttf?gbjx") format("truetype");
57+
src: url("font/context-menu-icons.eot?35p2z");
58+
src: url("font/context-menu-icons.eot?35p2z#iefix") format("embedded-opentype"), url("font/context-menu-icons.woff2?35p2z") format("woff2"), url("font/context-menu-icons.woff?35p2z") format("woff"), url("font/context-menu-icons.ttf?35p2z") format("truetype");
5959
}
6060

6161
.context-menu-icon-add:before {

dist/jquery.contextMenu.js

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Licensed under
1212
* MIT License http://www.opensource.org/licenses/mit-license
1313
*
14-
* Date: 2017-09-08T12:13:16.104Z
14+
* Date: 2017-08-30T12:41:32.950Z
1515
*/
1616

1717
// jscs:disable
@@ -116,10 +116,6 @@
116116
// flag denoting if a second trigger should simply move (true) or rebuild (false) an open menu
117117
// as long as the trigger happened on one of the trigger-element's child nodes
118118
reposition: true,
119-
// Flag denoting if a second trigger should close the menu, as long as
120-
// the trigger happened on one of the trigger-element's child nodes.
121-
// This overrides the reposition option.
122-
hideOnSecondTrigger: false,
123119

124120
//ability to select submenu
125121
selectableSubMenu: false,
@@ -240,8 +236,7 @@
240236
// events
241237
events: {
242238
show: $.noop,
243-
hide: $.noop,
244-
activated: $.noop
239+
hide: $.noop
245240
},
246241
// default callback
247242
callback: null,
@@ -476,12 +471,7 @@
476471
$(target).trigger(e);
477472
root.$layer.show();
478473
}
479-
480-
if (root.hideOnSecondTrigger && triggerAction && root.$menu !== null && typeof root.$menu !== 'undefined') {
481-
root.$menu.trigger('contextmenu:hide');
482-
return;
483-
}
484-
474+
485475
if (root.reposition && triggerAction) {
486476
if (document.elementFromPoint) {
487477
if (root.$trigger.is(target)) {
@@ -1007,9 +997,6 @@
1007997
// position and show context menu
1008998
opt.$menu.css(css)[opt.animation.show](opt.animation.duration, function () {
1009999
$trigger.trigger('contextmenu:visible');
1010-
1011-
op.activated(opt);
1012-
opt.events.activated();
10131000
});
10141001
// make options available and set state
10151002
$trigger
@@ -1540,26 +1527,6 @@
15401527
// Wait for promise completion. .then(success, error, notify) (we don't track notify). Bind the opt
15411528
// and root to avoid scope problems
15421529
promise.then(completedPromise.bind(this, opt, root), errorPromise.bind(this, opt, root));
1543-
},
1544-
// operation that will run after contextMenu showed on screen
1545-
activated: function(opt){
1546-
var $menu = opt.$menu;
1547-
var $menuOffset = $menu.offset();
1548-
var winHeight = $(window).height();
1549-
var winScrollTop = $(window).scrollTop();
1550-
var menuHeight = $menu.height();
1551-
if(menuHeight > winHeight){
1552-
$menu.css({
1553-
'height' : winHeight + 'px',
1554-
'overflow-x': 'hidden',
1555-
'overflow-y': 'auto',
1556-
'top': winScrollTop + 'px'
1557-
});
1558-
} else if(($menuOffset.top < winScrollTop) || ($menuOffset.top + menuHeight > winScrollTop + winHeight)){
1559-
$menu.css({
1560-
'top': '0px'
1561-
});
1562-
}
15631530
}
15641531
};
15651532

@@ -1649,20 +1616,6 @@
16491616
}
16501617

16511618
switch (operation) {
1652-
1653-
case 'update':
1654-
// Updates visibility and such
1655-
if(_hasContext){
1656-
op.update($context);
1657-
} else {
1658-
for(var menu in menus){
1659-
if(menus.hasOwnProperty(menu)){
1660-
op.update(menus[menu]);
1661-
}
1662-
}
1663-
}
1664-
break;
1665-
16661619
case 'create':
16671620
// no selector no joy
16681621
if (!o.selector) {

dist/jquery.contextMenu.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)