Skip to content

Commit

Permalink
fixed #39
Browse files Browse the repository at this point in the history
  • Loading branch information
easylogic committed Jul 25, 2020
1 parent fb7103e commit fb3cb13
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions addon/codemirror-colorpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9281,7 +9281,6 @@ var VSCodePicker = function (_BaseColorPicker) {
}, {
key: 'initColorWithoutChangeEvent',
value: function initColorWithoutChangeEvent(color) {
console.log(color);
this.$store.dispatch('/initColor', color);
this.refresh();
}
Expand Down Expand Up @@ -9374,7 +9373,7 @@ var ColorPicker = {
var colorpicker_class = 'codemirror-colorview';
var colorpicker_background_class = 'codemirror-colorview-background';
// Excluded tokens do not show color views..
var excluded_token = ['comment', 'builtin'];
var excluded_token = ['comment', 'builtin', 'qualifier'];

function onChange(cm, evt) {
if (evt.origin == 'setValue') {
Expand Down
3 changes: 1 addition & 2 deletions dist/codemirror-colorpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9415,7 +9415,6 @@ var VSCodePicker = function (_BaseColorPicker) {
}, {
key: 'initColorWithoutChangeEvent',
value: function initColorWithoutChangeEvent(color) {
console.log(color);
this.$store.dispatch('/initColor', color);
this.refresh();
}
Expand Down Expand Up @@ -9508,7 +9507,7 @@ var ColorPicker = {
var colorpicker_class = 'codemirror-colorview';
var colorpicker_background_class = 'codemirror-colorview-background';
// Excluded tokens do not show color views..
var excluded_token = ['comment', 'builtin'];
var excluded_token = ['comment', 'builtin', 'qualifier'];

function onChange(cm, evt) {
if (evt.origin == 'setValue') {
Expand Down
2 changes: 1 addition & 1 deletion dist/codemirror-colorpicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ <h1 class="title">
<div class="codemirror-area">

<textarea id="sample_text_area">
.sample-green {
.sample-green.red {
background-color: green;
blue: blue;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codemirror-colorpicker",
"version": "1.9.70",
"version": "1.9.71",
"description": "simple colorpicker used anywhere",
"main": "./dist/codemirror-colorpicker.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion src/colorpicker/vscode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default class VSCodePicker extends BaseColorPicker {
}

initColorWithoutChangeEvent (color) {
console.log(color);
this.$store.dispatch('/initColor', color);
this.refresh();
}
Expand Down
2 changes: 1 addition & 1 deletion src/extension/codemirror/colorview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ColorPicker from '../../colorpicker/index';
const colorpicker_class = 'codemirror-colorview';
const colorpicker_background_class = 'codemirror-colorview-background';
// Excluded tokens do not show color views..
let excluded_token = ['comment', 'builtin'];
let excluded_token = ['comment', 'builtin', 'qualifier'];


function onChange(cm, evt) {
Expand Down

0 comments on commit fb3cb13

Please sign in to comment.