Show More
@@ -440,16 +440,16 function(WidgetManager, _, Backbone){ | |||
|
440 | 440 | |
|
441 | 441 | var css = this.model.get('_css'); |
|
442 | 442 | if (css === undefined) {return;} |
|
443 | var that = this; | |
|
444 | _.each(css, function(css_traits, selector){ | |
|
443 | for (var i = 0; i < css.length; i++) { | |
|
445 | 444 | // Apply the css traits to all elements that match the selector. |
|
446 | var elements = that._get_selector_element(selector); | |
|
445 | var selector = css[i][0]; | |
|
446 | var elements = this._get_selector_element(selector); | |
|
447 | 447 | if (elements.length > 0) { |
|
448 | _.each(css_traits, function(css_value, css_key){ | |
|
449 | elements.css(css_key, css_value); | |
|
450 | }); | |
|
448 | var trait_key = css[i][1]; | |
|
449 | var trait_value = css[i][2]; | |
|
450 | elements.css(trait_key ,trait_value); | |
|
451 | 451 | } |
|
452 |
} |
|
|
452 | } | |
|
453 | 453 | }, |
|
454 | 454 | |
|
455 | 455 | _get_selector_element: function (selector) { |
General Comments 0
You need to be logged in to leave comments.
Login now