Browse Source

Fix tests

pull/1229/head
Artur Arseniev 8 years ago
parent
commit
31b13574dc
  1. 2
      src/dom_components/model/Component.js
  2. 2
      test/specs/style_manager/view/PropertySelectView.js

2
src/dom_components/model/Component.js

@ -364,7 +364,7 @@ const Component = Backbone.Model.extend(Styleable).extend(
classes.length && (attributes.class = classes.join(' '));
// If the rule is setted we need an ID attached to the component
if (!has(attributes, 'id') && sm.get(id, sm.Selector.TYPE_ID)) {
if (!has(attributes, 'id') && sm && sm.get(id, sm.Selector.TYPE_ID)) {
attributes.id = this.getId();
}

2
test/specs/style_manager/view/PropertySelectView.js

@ -1,5 +1,5 @@
const PropertySelectView = require('style_manager/view/PropertySelectView');
const Property = require('style_manager/model/Property');
const Property = require('style_manager/model/PropertyRadio');
const Editor = require('editor/model/Editor');
const DomComponents = require('dom_components');
const Component = require('dom_components/model/Component');

Loading…
Cancel
Save