-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move leaflet dependency to dev-dependencies #23
base: master
Are you sure you want to change the base?
Changes from 2 commits
79f9267
8e33bbf
ffec761
f1b9ddb
90cee10
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,7 +162,7 @@ return /******/ (function(modules) { // webpackBootstrap | |
function Icon(options) { | ||
_classCallCheck(this, Icon); | ||
|
||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Icon).call(this, options)); | ||
var _this = _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).call(this, options)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
|
||
_leaflet2.default.Util.setOptions(_this, iconOptions); | ||
_leaflet2.default.Util.setOptions(_this, options); | ||
|
@@ -204,10 +204,10 @@ return /******/ (function(modules) { // webpackBootstrap | |
if (options.extraClasses) { | ||
i.classList.add(options.extraClasses); | ||
} | ||
if (options.icon.slice(0, options.prefix.length + 1) === options.prefix + '-') { | ||
i.classList.add(options.icon); | ||
} else { | ||
if (options.prefix) { | ||
i.classList.add(options.prefix + '-' + options.icon); | ||
} else { | ||
i.classList.add(options.icon); | ||
} | ||
if (options.spin && typeof options.spinClass === 'string') { | ||
i.classList.add(options.spinClass); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ var Icon = function (_Leaflet$Icon) { | |
function Icon(options) { | ||
_classCallCheck(this, Icon); | ||
|
||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Icon).call(this, options)); | ||
var _this = _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).call(this, options)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. |
||
|
||
_leaflet2.default.Util.setOptions(_this, iconOptions); | ||
_leaflet2.default.Util.setOptions(_this, options); | ||
|
@@ -85,10 +85,10 @@ var Icon = function (_Leaflet$Icon) { | |
if (options.extraClasses) { | ||
i.classList.add(options.extraClasses); | ||
} | ||
if (options.icon.slice(0, options.prefix.length + 1) === options.prefix + '-') { | ||
i.classList.add(options.icon); | ||
} else { | ||
if (options.prefix) { | ||
i.classList.add(options.prefix + '-' + options.icon); | ||
} else { | ||
i.classList.add(options.icon); | ||
} | ||
if (options.spin && typeof options.spinClass === 'string') { | ||
i.classList.add(options.spinClass); | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.