Skip to content

Commit e381688

Browse files
committed
mojs-logo: change to target=_blank link
1 parent 7c1d069 commit e381688

File tree

7 files changed

+21
-10
lines changed

7 files changed

+21
-10
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mojs-player",
3-
"version": "0.43.14",
3+
"version": "0.43.15",
44
"description": "Player controls for [mojs](mojs.io). Intended to help you to craft `mojs` animation sequences.",
55
"main": "build/mojs-player.min.js",
66
"authors": [

build/mojs-player.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
:: MojsPlayer :: Player controls for [mojs](mojs.io). Intended to help you to craft `mojs` animation sequences.
33
Oleg Solomka @LegoMushroom 2016 MIT
4-
0.43.14
4+
0.43.15
55
*/
66

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

184-
this.revision = '0.43.14';
184+
this.revision = '0.43.15';
185185

186186
var str = this._fallbackTo(this._o.name, this._defaults.name);
187187
str += str === this._defaults.name ? '' : '__' + this._defaults.name;
@@ -366,6 +366,7 @@ return /******/ (function(modules) { // webpackBootstrap
366366
this.mojsButton = new _iconButton2.default({
367367
parent: right,
368368
icon: 'mojs',
369+
target: '_blank',
369370
link: 'https://github.com/legomushroom/mojs-player',
370371
title: 'mo • js',
371372
prefix: this._props.prefix
@@ -7562,6 +7563,7 @@ return /******/ (function(modules) { // webpackBootstrap
75627563
_Module.prototype._declareDefaults.call(this);
75637564
this._defaults.link = null;
75647565
this._defaults.title = '';
7566+
this._defaults.target = null;
75657567
this._defaults.onPointerDown = null;
75667568
this._defaults.onPointerUp = null;
75677569
this._defaults.onDoubleTap = null;
@@ -7577,10 +7579,12 @@ return /******/ (function(modules) { // webpackBootstrap
75777579
var p = this._props,
75787580
className = 'button',
75797581
tagName = p.link != null ? 'a' : 'div';
7582+
75807583
this._addMainElement(tagName);
75817584
this.el.classList.add(CLASSES[className]);
75827585
this.el.setAttribute('title', p.title);
75837586
p.link && this.el.setAttribute('href', p.link);
7587+
p.link && p.target && this.el.setAttribute('target', p.target);
75847588
this._addListeners();
75857589

75867590
this._createRipple();

build/mojs-player.min.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/components/button.babel.js

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Button extends Module {
1515
super._declareDefaults()
1616
this._defaults.link = null;
1717
this._defaults.title = '';
18+
this._defaults.target = null;
1819
this._defaults.onPointerDown = null;
1920
this._defaults.onPointerUp = null;
2021
this._defaults.onDoubleTap = null;
@@ -28,10 +29,12 @@ class Button extends Module {
2829
let p = this._props,
2930
className = 'button',
3031
tagName = ( p.link != null ) ? 'a' : 'div';
32+
3133
this._addMainElement( tagName );
3234
this.el.classList.add( CLASSES[ className ] );
3335
this.el.setAttribute( 'title', p.title );
3436
p.link && this.el.setAttribute( 'href', p.link );
37+
p.link && p.target && this.el.setAttribute( 'target', p.target );
3538
this._addListeners();
3639

3740
this._createRipple();

js/mojs-player.babel.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class MojsPlayer extends Module {
4444
this._defaults.precision = 0.1;
4545
this._defaults.name = 'mojs-player';
4646

47-
this.revision = '0.43.14';
47+
this.revision = '0.43.15';
4848

4949
let str = this._fallbackTo( this._o.name, this._defaults.name );
5050
str += ( str === this._defaults.name ) ? '' : `__${this._defaults.name}`;
@@ -213,6 +213,7 @@ class MojsPlayer extends Module {
213213
this.mojsButton = new IconButton({
214214
parent: right,
215215
icon: 'mojs',
216+
target: '_blank',
216217
link: 'https://github.com/legomushroom/mojs-player',
217218
title: 'mo • js',
218219
prefix: this._props.prefix

lib/components/button.js

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ var Button = function (_Module) {
4949
_Module.prototype._declareDefaults.call(this);
5050
this._defaults.link = null;
5151
this._defaults.title = '';
52+
this._defaults.target = null;
5253
this._defaults.onPointerDown = null;
5354
this._defaults.onPointerUp = null;
5455
this._defaults.onDoubleTap = null;
@@ -64,10 +65,12 @@ var Button = function (_Module) {
6465
var p = this._props,
6566
className = 'button',
6667
tagName = p.link != null ? 'a' : 'div';
68+
6769
this._addMainElement(tagName);
6870
this.el.classList.add(CLASSES[className]);
6971
this.el.setAttribute('title', p.title);
7072
p.link && this.el.setAttribute('href', p.link);
73+
p.link && p.target && this.el.setAttribute('target', p.target);
7174
this._addListeners();
7275

7376
this._createRipple();

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mojs-player",
33
"description": "Player controls for mojs playback",
4-
"version": "0.43.14",
4+
"version": "0.43.15",
55
"license": "MIT",
66
"private": false,
77
"scripts": {},

0 commit comments

Comments
 (0)