Skip to content

Commit

Permalink
Merge pull request #610 from daviferreira/link-linker
Browse files Browse the repository at this point in the history
Rename AutoLinker to AutoLink
  • Loading branch information
nmielnik committed May 17, 2015
2 parents 48928c8 + fe90777 commit 1c6aecf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions dist/js/medium-editor.js
Expand Up @@ -2884,7 +2884,7 @@ var AnchorPreview;
};
}());

var AutoLinker,
var AutoLink,
LINK_REGEXP_TEXT;

LINK_REGEXP_TEXT =
Expand All @@ -2897,7 +2897,7 @@ LINK_REGEXP_TEXT =
(function () {
'use strict';

AutoLinker = Extension.extend({
AutoLink = Extension.extend({
parent: true,

init: function () {
Expand Down Expand Up @@ -4219,7 +4219,7 @@ var extensionDefaults;
// for now this is empty because nothing interally uses an Extension default.
// as they are converted, provide them here.
extensionDefaults = {
autoLink: AutoLinker,
autoLink: AutoLink,
imageDragging: ImageDragging,
paste: PasteHandler
};
Expand Down Expand Up @@ -4636,7 +4636,7 @@ function MediumEditor(elements, options) {
}

if (shouldAddDefaultAutoLink.call(this)) {
this.commands.push(initExtension(new AutoLinker(), 'auto-link', this));
this.commands.push(initExtension(new AutoLink(), 'auto-link', this));
}

if (shouldAddDefaultImageDragging.call(this)) {
Expand Down
4 changes: 2 additions & 2 deletions src/js/core.js
@@ -1,6 +1,6 @@
/*global Util, ButtonsData, DefaultButton,
Selection, AnchorExtension, FontSizeExtension, Extension, extensionDefaults,
Toolbar, AnchorPreview, AutoLinker, ImageDragging,
Toolbar, AnchorPreview, AutoLink, ImageDragging,
Events, Placeholders, editorDefaults */

function MediumEditor(elements, options) {
Expand Down Expand Up @@ -414,7 +414,7 @@ function MediumEditor(elements, options) {
}

if (shouldAddDefaultAutoLink.call(this)) {
this.commands.push(initExtension(new AutoLinker(), 'auto-link', this));
this.commands.push(initExtension(new AutoLink(), 'auto-link', this));
}

if (shouldAddDefaultImageDragging.call(this)) {
Expand Down
4 changes: 2 additions & 2 deletions src/js/defaults/extensions.js
@@ -1,11 +1,11 @@
/*global PasteHandler, AutoLinker, ImageDragging */
/*global PasteHandler, AutoLink, ImageDragging */

var extensionDefaults;
(function () {
// for now this is empty because nothing interally uses an Extension default.
// as they are converted, provide them here.
extensionDefaults = {
autoLink: AutoLinker,
autoLink: AutoLink,
imageDragging: ImageDragging,
paste: PasteHandler
};
Expand Down
4 changes: 2 additions & 2 deletions src/js/extensions/auto-link.js
@@ -1,6 +1,6 @@
/*global Extension, Util */

var AutoLinker,
var AutoLink,
LINK_REGEXP_TEXT;

LINK_REGEXP_TEXT =
Expand All @@ -13,7 +13,7 @@ LINK_REGEXP_TEXT =
(function () {
'use strict';

AutoLinker = Extension.extend({
AutoLink = Extension.extend({
parent: true,

init: function () {
Expand Down

0 comments on commit 1c6aecf

Please sign in to comment.