Show More
@@ -316,10 +316,16 define(["components/underscore/underscore-min", | |||
|
316 | 316 | if (this.model.css.hasOwnProperty(selector)) { |
|
317 | 317 | |
|
318 | 318 | // Get the elements via the css selector. If the selector is |
|
319 |
// blank, a |
|
|
319 | // blank, apply the style to the $el_to_style element. If | |
|
320 | // the $el_to_style element is not defined, use apply the | |
|
321 | // style to the view's element. | |
|
320 | 322 | var elements = this.$el.find(selector); |
|
321 | 323 | if (selector=='') { |
|
322 |
|
|
|
324 | if (this.$el_to_style == undefined) { | |
|
325 | elements = this.$el; | |
|
326 | } else { | |
|
327 | elements = this.$el_to_style; | |
|
328 | } | |
|
323 | 329 | } |
|
324 | 330 | |
|
325 | 331 | // Apply the css traits to all elements that match the selector. |
General Comments 0
You need to be logged in to leave comments.
Login now