diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
new file mode 100644
index 0000000..00404d1
--- /dev/null
+++ b/.github/CONTRIBUTING.md
@@ -0,0 +1,4 @@
+Thanks for contributing :+1:
+
+In lieu of an own guideline, please have a look at the
+[Fancytree Contributing Guidelines](https://github.com/mar10/fancytree/wiki/HowtoContribute#report-issues).
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
new file mode 100644
index 0000000..e6fc770
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE.md
@@ -0,0 +1,24 @@
+Thanks for contributing :-)
+
+Please add info below, then remove all unneeded lines from this issue report.
+
+
+### Expected and actual behavior
+
+... (Maybe even a screenshot? Any hints on the browser's debug console?)
+
+
+### Steps to reproduce the problem
+
+ 1. ...
+ 2. ...
+
+Could you set up a jsFiddle (http://jsfiddle.net/mar10/6o3u8a88/) or
+Plunker (http://plnkr.co/edit/Bbcoqy?p=preview) ?
+
+
+### Environment
+
+ - Browser type and version:
+ - jQuery and jQuery UI versions:
+ - ui-contextmenu version:
diff --git a/.gitignore b/.gitignore
index 3c58feb..f0844a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
/.settings
/node_modules
+/test/issue-*
.DS_Store
npm-debug.log
.sizecache.json
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b3af35..be29c0b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,12 @@
-# 1.12.1-0 / Unreleased
+# 1.13.0-0 / Unreleased
+ *
- *
+# 1.13.0 / 2016-08-21
+
+ * [FEATURE] Test with jQuery 3
+ * [FEATURE] #104 Allow to pass mouse click events to `open()`
+ * Update grunt to 1.0
+ * Upate QUnit to 1.23 and refactor tests to use `assert`
# 1.12.0 / 2016-05-18
diff --git a/Gruntfile.coffee b/Gruntfile.coffee
index ea752e4..060ee20 100644
--- a/Gruntfile.coffee
+++ b/Gruntfile.coffee
@@ -75,34 +75,43 @@ module.exports = (grunt) ->
options:
urls: [
# "http://localhost:9999/test/index.html",
- "http://localhost:9999/test/index-jquery-ui-1-10.html"
+ "http://localhost:9999/test/test-jquery-1.9-ui-1.10.html"
]
-
- # username: process.env.SAUCE_USERNAME,
- # key: process.env.SAUCE_ACCESS_KEY,
build: process.env.TRAVIS_JOB_ID
throttled: 8
browsers: [
- { browserName: "chrome", platform: "Windows 7" }
- { browserName: "firefox", platform: "Windows 7" }
+ { browserName: "chrome", platform: "Windows 8.1" }
+ { browserName: "firefox", platform: "Windows 8.1" }
{ browserName: "firefox", platform: "Linux" }
{ browserName: "internet explorer", version: "6", platform: "Windows XP" }
{ browserName: "internet explorer", version: "7", platform: "Windows XP" }
- # { browserName: "internet explorer", version: "8", platform: "Windows 7" }
- # { browserName: "internet explorer", version: "9", platform: "Windows 7" }
- # { browserName: "internet explorer", version: "10", platform: "Windows 8" }
+ { browserName: "internet explorer", version: "8", platform: "Windows 7" }
{ browserName: "internet explorer", version: "11", platform: "Windows 8.1" }
{ browserName: "microsoftedge", platform: "Windows 10" }
- # { browserName: "safari", version: "6", platform: "OS X 10.8" }
- # { browserName: "safari", version: "7", platform: "OS X 10.9" }
- # { browserName: "safari", version: "8", platform: "OS X 10.10" }
{ browserName: "safari", version: "9", platform: "OS X 10.11" }
]
testname: "jquery.ui-contextmenu qunit tests (jQuery UI 10)"
+ ui_12:
+ options:
+ urls: [
+ "http://localhost:9999/test/test-jquery-3-ui-1.12.html"
+ ]
+ build: process.env.TRAVIS_JOB_ID
+ throttled: 8
+ browsers: [
+ { browserName: "chrome", platform: "Windows 8.1" }
+ { browserName: "firefox", platform: "Windows 8.1" }
+ { browserName: "firefox", platform: "Linux" }
+ { browserName: "internet explorer", version: "11", platform: "Windows 8.1" }
+ { browserName: "microsoftedge", platform: "Windows 10" }
+ { browserName: "safari", version: "9", platform: "OS X 10.11" }
+ ]
+ testname: "jquery.ui-contextmenu qunit tests (jQuery UI 12)"
ui: # UI Menu 11+ dropped support for IE7
options:
urls: [
- "http://localhost:9999/test/index.html",
+ "http://localhost:9999/test/test-jquery-1.11-ui-1.11.html"
+ # "http://localhost:9999/test/index.html",
# "http://localhost:9999/test/index-jquery-ui-1-10.html"
]
@@ -111,8 +120,8 @@ module.exports = (grunt) ->
build: process.env.TRAVIS_JOB_ID
throttled: 8
browsers: [
- { browserName: "chrome", platform: "Windows 7" }
- { browserName: "firefox", platform: "Windows 7" }
+ { browserName: "chrome", platform: "Windows 8.1" }
+ { browserName: "firefox", platform: "Windows 8.1" }
# { browserName: "firefox", platform: "Windows XP" }
{ browserName: "firefox", platform: "Linux" }
# jQuery UI 11+ stopped support for IE 7
@@ -132,7 +141,7 @@ module.exports = (grunt) ->
uglify:
options:
- banner: "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " + "<%= grunt.template.today('yyyy-mm-dd') %> | " + "<%= pkg.homepage ? ' ' + pkg.homepage + ' | ' : '' %>" + " Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" + " Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */\n"
+ banner: "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " + "<%= grunt.template.today('yyyy-mm-dd') %> | " + "<%= pkg.homepage ? ' ' + pkg.homepage + ' | ' : '' %>" + " Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" + " Licensed <%= _.map(pkg.licenses, 'type').join(', ') %> */\n"
report: "gzip"
build:
@@ -156,7 +165,7 @@ module.exports = (grunt) ->
yabs:
release:
common: # defaults for all tools
- manifests: ['package.json', 'bower.json', 'ui-contextmenu.jquery.json']
+ manifests: ['package.json', 'bower.json']
# The following tools are run in order:
check: { branch: ['master'], canPush: true, clean: true, cmpVersion: 'gte' }
run_test: { tasks: ['test'] }
@@ -182,7 +191,7 @@ module.exports = (grunt) ->
grunt.registerTask "server", ["connect:demo"]
grunt.registerTask "dev", ["connect:dev", "watch:dev"]
grunt.registerTask "test", ["jshint", "jscs", "qunit"]
- grunt.registerTask "sauce", ["connect:sauce", "saucelabs-qunit:ui", "saucelabs-qunit:ui_10"]
+ grunt.registerTask "sauce", ["connect:sauce", "saucelabs-qunit:ui","saucelabs-qunit:ui_10", "saucelabs-qunit:ui_12"]
if parseInt(process.env.TRAVIS_PULL_REQUEST, 10) > 0
# saucelab keys do not work on forks
# http://support.saucelabs.com/entries/25614798
diff --git a/LICENSE.txt b/LICENSE.txt
index 1a742e8..1fe179f 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,4 +1,4 @@
-Copyright 2013-2015 Martin Wendt and others (see commiter list on GitHub)
+Copyright 2013-2016 Martin Wendt and others (see commiter list on GitHub)
https://github.com/mar10/jquery-ui-contextmenu
Permission is hereby granted, free of charge, to any person obtaining
diff --git a/README.md b/README.md
index e23255a..e614ce6 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,14 @@ See also the [Change Log](https://github.com/mar10/jquery-ui-contextmenu/blob/ma
[Live demo page](http://wwwendt.de/tech/demo/jquery-contextmenu/demo/):
[  ](http://wwwendt.de/tech/demo/jquery-contextmenu/demo/ "Live demo")
+See also the unit tests and live examples
+
+**More:**
+
+ * Play with [jsFiddle](http://jsfiddle.net/mar10/6o3u8a88/) or
+ [Plunker](http://plnkr.co/edit/Bbcoqy?p=preview)
+ * Run the [unit tests](http://rawgit.com/mar10/jquery-ui-contextmenu/master/test/index.html).
+
## Getting Started
diff --git a/bower.json b/bower.json
index 472431b..8fb7fda 100644
--- a/bower.json
+++ b/bower.json
@@ -1,7 +1,7 @@
{
"name": "ui-contextmenu",
"description": "Turn a jQuery UI Menu widget into a contextmenu.",
- "version": "1.12.0",
+ "version": "1.13.0",
"main": [
"jquery.ui-contextmenu.js"
],
diff --git a/demo/index-1-12.html b/demo/index-1-12.html
index 742dbf8..820b092 100644
--- a/demo/index-1-12.html
+++ b/demo/index-1-12.html
@@ -5,7 +5,12 @@