Skip to content

Commit

Permalink
mojs-logo: change to target=_blank link
Browse files Browse the repository at this point in the history
  • Loading branch information
legomushroom committed Jul 19, 2016
1 parent 7c1d069 commit e381688
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mojs-player",
"version": "0.43.14",
"version": "0.43.15",
"description": "Player controls for [mojs](mojs.io). Intended to help you to craft `mojs` animation sequences.",
"main": "build/mojs-player.min.js",
"authors": [
Expand Down
8 changes: 6 additions & 2 deletions build/mojs-player.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
:: MojsPlayer :: Player controls for [mojs](mojs.io). Intended to help you to craft `mojs` animation sequences.
Oleg Solomka @LegoMushroom 2016 MIT
0.43.14
0.43.15
*/

(function webpackUniversalModuleDefinition(root, factory) {
Expand Down Expand Up @@ -181,7 +181,7 @@ return /******/ (function(modules) { // webpackBootstrap
this._defaults.precision = 0.1;
this._defaults.name = 'mojs-player';

this.revision = '0.43.14';
this.revision = '0.43.15';

var str = this._fallbackTo(this._o.name, this._defaults.name);
str += str === this._defaults.name ? '' : '__' + this._defaults.name;
Expand Down Expand Up @@ -366,6 +366,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.mojsButton = new _iconButton2.default({
parent: right,
icon: 'mojs',
target: '_blank',
link: 'https://github.com/legomushroom/mojs-player',
title: 'mo • js',
prefix: this._props.prefix
Expand Down Expand Up @@ -7562,6 +7563,7 @@ return /******/ (function(modules) { // webpackBootstrap
_Module.prototype._declareDefaults.call(this);
this._defaults.link = null;
this._defaults.title = '';
this._defaults.target = null;
this._defaults.onPointerDown = null;
this._defaults.onPointerUp = null;
this._defaults.onDoubleTap = null;
Expand All @@ -7577,10 +7579,12 @@ return /******/ (function(modules) { // webpackBootstrap
var p = this._props,
className = 'button',
tagName = p.link != null ? 'a' : 'div';

this._addMainElement(tagName);
this.el.classList.add(CLASSES[className]);
this.el.setAttribute('title', p.title);
p.link && this.el.setAttribute('href', p.link);
p.link && p.target && this.el.setAttribute('target', p.target);
this._addListeners();

this._createRipple();
Expand Down
10 changes: 5 additions & 5 deletions build/mojs-player.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions js/components/button.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Button extends Module {
super._declareDefaults()
this._defaults.link = null;
this._defaults.title = '';
this._defaults.target = null;
this._defaults.onPointerDown = null;
this._defaults.onPointerUp = null;
this._defaults.onDoubleTap = null;
Expand All @@ -28,10 +29,12 @@ class Button extends Module {
let p = this._props,
className = 'button',
tagName = ( p.link != null ) ? 'a' : 'div';

this._addMainElement( tagName );
this.el.classList.add( CLASSES[ className ] );
this.el.setAttribute( 'title', p.title );
p.link && this.el.setAttribute( 'href', p.link );
p.link && p.target && this.el.setAttribute( 'target', p.target );
this._addListeners();

this._createRipple();
Expand Down
3 changes: 2 additions & 1 deletion js/mojs-player.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MojsPlayer extends Module {
this._defaults.precision = 0.1;
this._defaults.name = 'mojs-player';

this.revision = '0.43.14';
this.revision = '0.43.15';

let str = this._fallbackTo( this._o.name, this._defaults.name );
str += ( str === this._defaults.name ) ? '' : `__${this._defaults.name}`;
Expand Down Expand Up @@ -213,6 +213,7 @@ class MojsPlayer extends Module {
this.mojsButton = new IconButton({
parent: right,
icon: 'mojs',
target: '_blank',
link: 'https://github.com/legomushroom/mojs-player',
title: 'mo • js',
prefix: this._props.prefix
Expand Down
3 changes: 3 additions & 0 deletions lib/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ var Button = function (_Module) {
_Module.prototype._declareDefaults.call(this);
this._defaults.link = null;
this._defaults.title = '';
this._defaults.target = null;
this._defaults.onPointerDown = null;
this._defaults.onPointerUp = null;
this._defaults.onDoubleTap = null;
Expand All @@ -64,10 +65,12 @@ var Button = function (_Module) {
var p = this._props,
className = 'button',
tagName = p.link != null ? 'a' : 'div';

this._addMainElement(tagName);
this.el.classList.add(CLASSES[className]);
this.el.setAttribute('title', p.title);
p.link && this.el.setAttribute('href', p.link);
p.link && p.target && this.el.setAttribute('target', p.target);
this._addListeners();

this._createRipple();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mojs-player",
"description": "Player controls for mojs playback",
"version": "0.43.14",
"version": "0.43.15",
"license": "MIT",
"private": false,
"scripts": {},
Expand Down

0 comments on commit e381688

Please sign in to comment.