Merge pull request #25 from tobiaslins/support-react

first needed modifications to support react
This commit is contained in:
Prateeksha Singh 2017-11-04 22:36:10 +05:30 committed by GitHub
commit 3a52a56171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@
node_modules
# misc
.DS_Store
.DS_Store
yarn.lock

1
dist/frappe-charts.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -28,6 +28,7 @@ export default [
plugins: [
postcss({
extensions: [ '.less' ],
extract: 'dist/frappe-charts.min.css',
plugins: [
nested(),
cssnext({ warnForDuplicates: false }),

View File

@ -22,7 +22,7 @@ export default class BaseChart {
}) {
this.raw_chart_args = arguments[0];
this.parent = document.querySelector(parent);
this.parent = typeof parent === 'String' ? document.querySelector(parent) : parent;
this.title = title;
this.subtitle = subtitle;