Skip to content

Commit

Permalink
Merge pull request #21 from andrusieczko/issue-19-and-pr-20
Browse files Browse the repository at this point in the history
Issue 19 and pr 20
  • Loading branch information
andrusieczko committed May 5, 2016
2 parents eb091bf + d6ca435 commit 1b6fd2d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# clip-path-polygon changelog

### 0.1.9 (2016-05-05)
* [BUGFIX] add `window.jQuery` as an option of loading jQuery
* [BUGFIX] hide created `svg` elements so that they do not appear on the bottom of the page

### 0.1.8 (2016-02-26)
* [BUGFIX] parameters `isForWebkit`, `isForSvg` were set to false when empty map was passed options

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clip-path-polygon",
"version": "0.1.8",
"version": "0.1.9",
"homepage": "https://github.com/andrusieczko/clip-path-polygon",
"authors": [
"Karol Andrusieczko <karol.andrusieczko@gmail.com>"
Expand Down
4 changes: 2 additions & 2 deletions build/clip-path-polygon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions js/clip-path-polygon.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/*!
* jQuery clip-path-polygon Plugin v0.1.5 (2015-04-01)
* jQuery clip-path-polygon Plugin v0.1.9 (2016-05-05)
* jQuery plugin that makes easy to use clip-path on whatever tag under different browsers
* https://github.com/andrusieczko/clip-path-polygon
*
* Copyright 2015 Karol Andrusieczko
* Released under MIT license
*/

var jQuery = jQuery || window.jQuery || (require && require('jquery'));
var globalVariable = window || root;
var jQuery = jQuery || globalVariable.jQuery || (require && require('jquery'));

(function($) {
var id = 0;
Expand All @@ -27,7 +28,6 @@ var jQuery = jQuery || window.jQuery || (require && require('jquery'));
}
exports.ClipPath = ClipPath;
} else {
var globalVariable = window || root;
globalVariable.ClipPath = ClipPath;
}

Expand Down Expand Up @@ -97,7 +97,7 @@ var jQuery = jQuery || window.jQuery || (require && require('jquery'));

_createSvgDefs: function() {
if (this.$('#' + this.svgDefId + '').length === 0) {
var $svg = this._createSvgElement('svg').attr('width', 0).attr('height', 0);
var $svg = this._createSvgElement('svg').attr('width', 0).attr('height', 0).css('display', 'none');
var $defs = this._createSvgElement('defs');
$svg.append($defs);
var $clippath = this._createSvgElement('clipPath').attr('id', this.svgDefId);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "js/clip-path-polygon",
"url": "https://github.com/andrusieczko/clip-path-polygon",
"description": "jQuery plugin that makes easy to use clip-path on whatever tag under different browsers",
"version": "0.1.8",
"version": "0.1.9",
"repository": {
"type": "git",
"url": "git://github.com/andrusieczko/clip-path-polygon.git"
Expand Down

0 comments on commit 1b6fd2d

Please sign in to comment.