Skip to content

Commit

Permalink
remove trailing whitespaces ❤️
Browse files Browse the repository at this point in the history
  • Loading branch information
goshacmd committed Feb 26, 2013
1 parent b50e053 commit cafc75b
Show file tree
Hide file tree
Showing 383 changed files with 4,579 additions and 2,580 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you're familiar with how Rails works and are comfortable setting up your own

## Vision

Discourse is a **Civilized Discourse Construction Kit**, an 100% open-source discussion platform that is free for everyone to use and contribute to -- forever.
Discourse is a **Civilized Discourse Construction Kit**, an 100% open-source discussion platform that is free for everyone to use and contribute to -- forever.

Key Discourse mission goals:

Expand All @@ -44,7 +44,7 @@ This vision translates to the following functional commitments:
- Internet Explorer 9.0, 10.0+
- Firefox 16+
- Google Chrome 23+
- Safari 5+
- Safari 5+
2. Support the latest generation of tablets, 7" or larger
- iPad 2+
- Android 4.1+
Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/admin/models/email_log.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Discourse.EmailLog = Discourse.Model.extend({});

Discourse.EmailLog.reopenClass({

create: function(attrs) {
if (attrs.user) {
attrs.user = Discourse.AdminUser.create(attrs.user);
Expand Down
2 changes: 0 additions & 2 deletions app/assets/javascripts/admin/routes/admin_customize_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ Discourse.AdminCustomizeRoute = Discourse.Route.extend({
this.render({into: 'admin/templates/admin'});
}
});


2 changes: 0 additions & 2 deletions app/assets/javascripts/admin/routes/admin_email_logs_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ Discourse.AdminEmailLogsRoute = Discourse.Route.extend({
this.render('admin/templates/email_logs');
}
});


2 changes: 0 additions & 2 deletions app/assets/javascripts/admin/routes/admin_flags_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ Discourse.AdminFlagsRoute = Discourse.Route.extend({
this.render('admin/templates/flags');
}
});


2 changes: 0 additions & 2 deletions app/assets/javascripts/admin/routes/admin_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ Discourse.AdminRoute = Discourse.Route.extend({
this.render('admin/templates/admin');
}
});


1 change: 0 additions & 1 deletion app/assets/javascripts/admin/routes/admin_routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
**/
Discourse.buildRoutes(function() {
this.resource('admin', { path: '/admin' }, function() {

this.route('dashboard', { path: '/' });
this.route('site_settings', { path: '/site_settings' });
this.route('email_logs', { path: '/email_logs' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ Discourse.AdminSiteSettingsRoute = Discourse.Route.extend({
this.render('admin/templates/site_settings', {into: 'admin/templates/admin'});
}
});


3 changes: 0 additions & 3 deletions app/assets/javascripts/admin/routes/admin_user_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ Discourse.AdminUserRoute = Discourse.Route.extend({
renderTemplate: function() {
this.render('admin/templates/user', {into: 'admin/templates/admin'});
}

});


Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ Discourse.AdminUsersListActiveRoute = Discourse.Route.extend({
return this.controllerFor('adminUsersList').show('active');
}
});


Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ Discourse.AdminUsersListNewRoute = Discourse.Route.extend({
return this.controllerFor('adminUsersList').show('new');
}
});


Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ Discourse.AdminUsersListPendingRoute = Discourse.Route.extend({
return this.controllerFor('adminUsersList').show('pending');
}
});


2 changes: 0 additions & 2 deletions app/assets/javascripts/admin/routes/admin_users_list_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ Discourse.AdminUsersListRoute = Discourse.Route.extend({
this.render('admin/templates/users_list', {into: 'admin/templates/admin'});
}
});


2 changes: 1 addition & 1 deletion app/assets/javascripts/admin/translations.js.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//= depend_on 'client.en.yml'

<% SimplesIdeias::I18n.assert_usable_configuration! %>
<% admin = SimplesIdeias::I18n.translation_segments['app/assets/javascripts/i18n/admin.en.js']
<% admin = SimplesIdeias::I18n.translation_segments['app/assets/javascripts/i18n/admin.en.js']
admin[:en][:js] = admin[:en].delete(:admin_js)
%>
jQuery.extend(true, I18n.translations, <%= admin.to_json %>);
2 changes: 0 additions & 2 deletions app/assets/javascripts/admin/views/admin_customize_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,3 @@ Discourse.AdminCustomizeView = Discourse.View.extend({
}

});


2 changes: 1 addition & 1 deletion app/assets/javascripts/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
# Include javascripts
DiscoursePluginRegistry.javascripts.each do |js|
require_asset(js)
end
end
%>
2 changes: 1 addition & 1 deletion app/assets/javascripts/defer/html-sanitizer-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ URI.prototype.setPath = function (newPath) {
URI.prototype.setRawPath = function (newPath) {
if (newPath) {
newPath = String(newPath);
this.path_ =
this.path_ =
// Paths must start with '/' unless this is a path-relative URL.
(!this.domain_ || /^\//.test(newPath)) ? newPath : '/' + newPath;
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/discourse/components/bbcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ Discourse.BBCode = {
text = Discourse.BBCode.formatQuote(text, opts);
return text;
}
};
};
2 changes: 1 addition & 1 deletion app/assets/javascripts/discourse/components/debounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Discourse.debounce = function(func, wait, trickle) {
} else {
currentWait = wait;
}

if (timeout) {
clearTimeout(timeout);
}
Expand Down
22 changes: 10 additions & 12 deletions app/assets/javascripts/discourse/components/probes.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/*
/*
* JavaScript probing framework by Sam Saffron
* MIT license
*
*
* Examples:
*
* Examples:
*
* someFunction = window.probes.measure(someFunction, {
* name: "somename" // or function(args) { return "name"; },
Expand All @@ -26,10 +25,9 @@
* // minimal
* someFunction = window.probes.measure(someFunction, "someFunction");
*
*
* */
(function(){
var measure, clear;
var measure, clear;

clear = function() {
window.probes = {
Expand All @@ -48,14 +46,14 @@
if (typeof options === "string") {
nameParam = options;
}
else
else
{
nameParam = options.name;

if (nameParam === "measure" || nameParam === "clear") {
throw new Error("can not be called measure or clear");
throw new Error("can not be called measure or clear");
}

if (!nameParam)
{
throw new Error("you must specify the name option measure(fn, {name: 'some name'})");
Expand All @@ -78,7 +76,7 @@
}
var p = window.probes[name];
var owner = (!start);

if (before) {
// would like to avoid try catch so its optimised properly by chrome
before(p, owner, arguments);
Expand All @@ -94,14 +92,14 @@
start = now();
callStart = start;
}
else if(after)
else if(after)
{
callStart = now();
}

var r = fn.apply(this, arguments);
var r = fn.apply(this, arguments);
if (owner && start) {
p.time += now() - start;
p.time += now() - start;
start = null;
}
p.count += 1;
Expand Down
2 changes: 0 additions & 2 deletions app/assets/javascripts/discourse/components/screen_track.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,3 @@ Discourse.ScreenTrack = Ember.Object.extend({
}

});


2 changes: 0 additions & 2 deletions app/assets/javascripts/discourse/routes/user_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ Discourse.UserRoute = Discourse.Route.extend({
return { username: Em.get(params, 'username').toLowerCase() };
}
});


2 changes: 1 addition & 1 deletion app/assets/javascripts/discourse/translations.js.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//= depend_on 'client.en.yml'

<% SimplesIdeias::I18n.assert_usable_configuration! %>
var I18n = I18n || {};
var I18n = I18n || {};
I18n.translations = <%= SimplesIdeias::I18n.translation_segments['app/assets/javascripts/i18n/en.js'].to_json %>;
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ Discourse.ArchetypeOptionsView = Em.ContainerView.extend({
}

});


2 changes: 0 additions & 2 deletions app/assets/javascripts/discourse/views/post_menu_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,3 @@ Discourse.PostMenuView = Discourse.View.extend({
}

});


2 changes: 0 additions & 2 deletions app/assets/javascripts/discourse/views/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
@module Discourse
**/
window.Discourse.View = Ember.View.extend(Discourse.Presence, {});


Loading

0 comments on commit cafc75b

Please sign in to comment.