From 2e140583c376a334e0636146f5ad525fa7f95aab Mon Sep 17 00:00:00 2001 From: Kacper Krupa Date: Sat, 7 Feb 2015 19:29:34 +0100 Subject: [PATCH 1/2] adding package.json file --- package.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..75d5abe --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "bootstrap-hover-dropdown", + "version": "2.0.11", + "description": "An unofficial Bootstrap plugin to enable Bootstrap dropdowns to activate on hover and provide a nice user experience.", + "main": "bootstrap-hover-dropdown.js", + "repository": { + "type": "git", + "url": "git@github.com:CWSpear/bootstrap-hover-dropdown.git" + }, + "keywords": [ + "twitter", + "bootstrap", + "hover", + "dropdowns" + ], + "author": "Cameron Spear", + "license": "MIT", + "bugs": { + "url": "https://github.com/CWSpear/bootstrap-hover-dropdown/issues" + }, + "homepage": "https://github.com/CWSpear/bootstrap-hover-dropdown" +} From 853eb8b57b5be76f03e4e396ed6d80cb55b05cef Mon Sep 17 00:00:00 2001 From: Kacper Krupa Date: Sat, 7 Feb 2015 19:46:13 +0100 Subject: [PATCH 2/2] Compatibility with browserify --- bootstrap-hover-dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-hover-dropdown.js b/bootstrap-hover-dropdown.js index 0536f20..c8236ea 100644 --- a/bootstrap-hover-dropdown.js +++ b/bootstrap-hover-dropdown.js @@ -106,4 +106,4 @@ // apply dropdownHover to all elements with the data-hover="dropdown" attribute $('[data-hover="dropdown"]').dropdownHover(); }); -})(jQuery, this); +})(jQuery, window);