Skip to content

Commit

Permalink
Merge pull request bocoup#24 from rwldrn/moar-ws
Browse files Browse the repository at this point in the history
Moar whitespace purging
  • Loading branch information
iros committed Jan 24, 2012
2 parents 0f62081 + 107d750 commit 8b25b55
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/modules/base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* Startup Data Trends
* Author Irene Ros (Bocoup)
*/
Expand Down
34 changes: 17 additions & 17 deletions app/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
initialize: function(attributes) {
this.el = $(this.id);

// Get compile templated from cache
// Get compile templated from cache
this.template = ALT.app.templates[this.template];

this._searchComponents = {
Expand Down Expand Up @@ -213,22 +213,22 @@
}, this),
minLength: 2,
select : _.bind(function(event, ui) {
// TODO: append item to list
// TODO: clear search
// Add a tag to the current list of tags

var tagModel = new S.Models.Tag(ui.item);
tagModel.set({
"tag_type" : this.search.get("type")
}, { silent:true });
// rendering happens on tag add, not here. This is
// to support url based searches.
tagModel.triggerSearch();
ALT.app.currentTags.add(tagModel);
event.preventDefault();
input.val("").focus();
}, this)
// TODO: append item to list
// TODO: clear search
// Add a tag to the current list of tags

var tagModel = new S.Models.Tag(ui.item);
tagModel.set({
"tag_type" : this.search.get("type")
}, { silent:true });

// rendering happens on tag add, not here. This is
// to support url based searches.
tagModel.triggerSearch();
ALT.app.currentTags.add(tagModel);
event.preventDefault();
input.val("").focus();
}, this)
});
return this;
}
Expand Down
8 changes: 4 additions & 4 deletions app/modules/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
template: "panel-startup-full",

initialize: function(attributes, options) {
// Get compile template from cache
// Get compile template from cache
this.template = ALT.app.templates[this.template];
this.el = $(this.el);

Expand Down Expand Up @@ -327,7 +327,7 @@
},

initialize: function(attributes, options) {
// Get compile template from cache
// Get compile template from cache
this.template = ALT.app.templates[this.template];
},

Expand Down Expand Up @@ -379,7 +379,7 @@

this.el = $(this.id);

// Get compile template from cache
// Get compile template from cache
this.template = ALT.app.templates[this.template];

// save incoming tags.
Expand All @@ -399,7 +399,7 @@

this.collection.fetch({
success : _.bind(function(collection) {

// If there are no startups, exit gracefully
if (!collection.length) {
return B.Views.Done();
Expand Down
2 changes: 1 addition & 1 deletion app/modules/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
this.metrics.maxCount,
this.metrics.minFontSize,
this.metrics.maxFontSize
);
);

tagEl = $(
this.tag_template({
Expand Down

0 comments on commit 8b25b55

Please sign in to comment.