-
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
Make it really work without prefix #33
base: master
Are you sure you want to change the base?
Conversation
i.classList.add(options.prefix + '-' + options.icon) | ||
i.classList.add(options.prefix) |
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.
Missing semicolon.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
The 'proto' property is deprecated.
/* 3 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
/***/ (function(module, exports, __webpack_require__) { |
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.
Identifier 'webpack_require' is not in camel case.
/* 2 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
/***/ (function(module, exports, __webpack_require__) { |
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.
Identifier 'webpack_require' is not in camel case.
Wrapping non-IIFE function literals in parens is unnecessary.
/* 1 */ | ||
/***/ function(module, exports) { | ||
/***/ (function(module, exports) { |
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.
'exports' is defined but never used.
Wrapping non-IIFE function literals in parens is unnecessary.
@@ -52,7 +52,7 @@ return /******/ (function(modules) { // webpackBootstrap | |||
/************************************************************************/ | |||
/******/ ([ | |||
/* 0 */ | |||
/***/ function(module, exports, __webpack_require__) { | |||
/***/ (function(module, exports, __webpack_require__) { |
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.
Identifier 'webpack_require' is not in camel case.
Wrapping non-IIFE function literals in parens is unnecessary.
Relevant changes in src/Icon.js:
Check whether options.prefix is set and is a string before passing it to i.classList.add() because this function throws an error if the argument is not a string.