Skip to content

Commit

Permalink
Release: v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tabalinas committed Oct 16, 2015
1 parent d6c63ca commit 0c8fefe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jssocials",
"version": "0.2.0",
"version": "1.0.0",
"main": "dist/jssocials.js",
"ignore": [
"demo",
Expand Down
10 changes: 8 additions & 2 deletions dist/jssocials.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jssocials - v0.2.0 - 2015-05-17
/*! jssocials - v1.0.0 - 2015-10-16
* http://js-socials.com
* Copyright (c) 2015 Artem Tabalin; Licensed MIT */
(function(window, $, undefined) {
Expand Down Expand Up @@ -77,7 +77,7 @@

_initDefaults: function() {
this.url = window.location.href;
this.text = $("meta[name=description]").attr("content") || $("title").text();
this.text = $.trim($("meta[name=description]").attr("content") || $("title").text());
},

_initShares: function() {
Expand Down Expand Up @@ -170,6 +170,12 @@
.attr({ href: this._getShareUrl(share), target: "_blank" })
.append(this._createShareLogo(share));

$.each(this.on || {}, function(event, handler) {
if($.isFunction(handler)) {
$result.on(event, $.proxy(handler, share));
}
});

if(this._showLabel) {
$result.append(this._createShareLabel(share));
}
Expand Down
4 changes: 2 additions & 2 deletions dist/jssocials.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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jssocials",
"version": "0.2.0",
"version": "1.0.0",
"main": "dist/jssocials.js",
"description": "jsSocials - jQuery Social Network Sharing Plugin",
"homepage": "http://js-socials.com",
Expand Down

0 comments on commit 0c8fefe

Please sign in to comment.