Browse Source

Fix class names

up-style-manager
Artur Arseniev 4 years ago
parent
commit
0bc2dcb83b
  1. 2
      src/style_manager/view/LayerView.js
  2. 2
      src/style_manager/view/PropertiesView.js
  3. 8
      src/style_manager/view/PropertyView.js

2
src/style_manager/view/LayerView.js

@ -1,7 +1,7 @@
import { View } from 'backbone';
import { keys } from 'underscore';
export default class LayersView extends View {
export default class LayerView extends View {
events() {
return {
click: 'select',

2
src/style_manager/view/PropertiesView.js

@ -1,7 +1,7 @@
import { View } from 'common';
import { appendAtIndex } from 'utils/dom';
export default class LayersView extends View {
export default class PropertiesView extends View {
initialize(o) {
this.config = o.config || {};
this.pfx = this.config.stylePrefix || '';

8
src/style_manager/view/PropertyView.js

@ -53,14 +53,14 @@ export default Backbone.View.extend({
const { model } = this;
model.view = this;
this.listenTo(model, 'destroy remove', this.remove);
this.listenTo(model, 'change:visible', this.updateVisibility);
this.listenTo(model, 'change:name change:className change:full', this.render);
// Put a sligh delay on debounce in order to execute the update
// post styleManager.__upProps trigger.
this.onValueChange = debounce(this.onValueChange.bind(this), 10);
this.updateStatus = debounce(this.updateStatus.bind(this));
this.listenTo(model, 'destroy remove', this.remove);
this.listenTo(model, 'change:visible', this.updateVisibility);
this.listenTo(model, 'change:name change:className change:full', this.render);
this.listenTo(model, 'change:value', this.onValueChange);
this.listenTo(em, 'change:device', this.onValueChange);

Loading…
Cancel
Save