summaryrefslogtreecommitdiffstatshomepage
path: root/src/js/_enqueues/wp/customize/models.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/_enqueues/wp/customize/models.js')
-rw-r--r--src/js/_enqueues/wp/customize/models.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/js/_enqueues/wp/customize/models.js b/src/js/_enqueues/wp/customize/models.js
index f11b3d04b8..0a8bca7f47 100644
--- a/src/js/_enqueues/wp/customize/models.js
+++ b/src/js/_enqueues/wp/customize/models.js
@@ -53,8 +53,8 @@
var data = this.get('header'),
curr = api.HeaderTool.currentHeader.get('header').attachment_id;
- // If the image we're removing is also the current header, unset
- // the latter
+ // If the image we're removing is also the current header,
+ // unset the latter.
if (curr && data.attachment_id === curr) {
api.HeaderTool.currentHeader.trigger('hide');
}
@@ -142,7 +142,7 @@
api.HeaderTool.ChoiceList = Backbone.Collection.extend({
model: api.HeaderTool.ImageModel,
- // Ordered from most recently used to least
+ // Ordered from most recently used to least.
comparator: function(model) {
return -model.get('header').timestamp;
},
@@ -151,18 +151,18 @@
var current = api.HeaderTool.currentHeader.get('choice').replace(/^https?:\/\//, ''),
isRandom = this.isRandomChoice(api.get().header_image);
- // Overridable by an extending class
+ // Overridable by an extending class.
if (!this.type) {
this.type = 'uploaded';
}
- // Overridable by an extending class
+ // Overridable by an extending class.
if (typeof this.data === 'undefined') {
this.data = _wpCustomizeHeader.uploads;
}
if (isRandom) {
- // So that when adding data we don't hide regular images
+ // So that when adding data we don't hide regular images.
current = api.get().header_image;
}