Skip to content

Commit

Permalink
Vue 2.2.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbeauvais committed Mar 18, 2017
1 parent 0121d3d commit 492b115
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
<a name="2.1.5"></a>
# [2.1.5](https://github.com/nicolasbeauvais/vue-social-sharing/compare/2.1.4...2.1.5) (2017-03-18)
- Vue 2.2.4 compatibility

<a name="2.1.4"></a>
# [2.1.4](https://github.com/nicolasbeauvais/vue-social-sharing/compare/2.1.3...2.1.4) (2017-03-18)
- Center popup on dual screen
Expand Down
2 changes: 0 additions & 2 deletions dist/vue-social-sharing.common.js
Expand Up @@ -267,10 +267,8 @@ var SocialSharing = {
var width = $window.innerWidth ? $window.innerWidth : (document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width);
var height = $window.innerHeight ? $window.innerHeight : (document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height);

console.log(width, this.popup.width, dualScreenLeft, height, this.popup.height, dualScreenTop);
this.popup.left = ((width / 2) - (this.popup.width / 2)) + dualScreenLeft;
this.popup.top = ((height / 2) - (this.popup.height / 2)) + dualScreenTop;
console.log(this.popup.left, this.popup.top);
},

/**
Expand Down
2 changes: 0 additions & 2 deletions dist/vue-social-sharing.js
Expand Up @@ -271,10 +271,8 @@ var SocialSharing = {
var width = $window.innerWidth ? $window.innerWidth : (document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width);
var height = $window.innerHeight ? $window.innerHeight : (document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height);

console.log(width, this.popup.width, dualScreenLeft, height, this.popup.height, dualScreenTop);
this.popup.left = ((width / 2) - (this.popup.width / 2)) + dualScreenLeft;
this.popup.top = ((height / 2) - (this.popup.height / 2)) + dualScreenTop;
console.log(this.popup.left, this.popup.top);
},

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-social-sharing.min.js

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

2 changes: 1 addition & 1 deletion examples/vue2-example.html
Expand Up @@ -5,7 +5,7 @@
<title>Vue social sharing example</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.2/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.4/vue.min.js"></script>
<script src="../dist/vue-social-sharing.js"></script>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "vue-social-sharing",
"description": "A Vue.js component for sharing links to social networks",
"version": "2.1.4",
"version": "2.1.5",
"author": {
"name": "nicolasbeauvais",
"email": "nicolasbeauvais1@gmail.com"
Expand Down Expand Up @@ -52,7 +52,7 @@
"rollup-plugin-replace": "^1.1.0",
"selenium-server": "2.53.1",
"uglify-js": "^2.6.1",
"vue": "^2.0.0",
"vue": "^2.2.4",
"webpack": "^1.12.9",
"webpack-dev-server": "^1.14.1"
},
Expand Down
2 changes: 0 additions & 2 deletions src/social-sharing.js
Expand Up @@ -212,10 +212,8 @@ export default {
const width = $window.innerWidth ? $window.innerWidth : (document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width);
const height = $window.innerHeight ? $window.innerHeight : (document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height);

console.log(width, this.popup.width, dualScreenLeft, height, this.popup.height, dualScreenTop);
this.popup.left = ((width / 2) - (this.popup.width / 2)) + dualScreenLeft;
this.popup.top = ((height / 2) - (this.popup.height / 2)) + dualScreenTop;
console.log(this.popup.left, this.popup.top);
},

/**
Expand Down

0 comments on commit 492b115

Please sign in to comment.