Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
apucacao committed Nov 4, 2012
1 parent e68c8f2 commit e6f9fd6
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 26 deletions.
10 changes: 8 additions & 2 deletions public/js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
define([
'underscore', 'jquery', 'backbone', 'model/Links', 'view/App'
], function(_, $, Backbone, LinkCollection, AppView) {
'underscore',
'jquery',
'backbone',
'model/Links',
'view/App'
],

function(_, $, Backbone, LinkCollection, AppView) {

'use strict';

Expand Down
7 changes: 6 additions & 1 deletion public/js/hbs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
define(['handlebars','text'], function (Handlebars, text) {
define([
'handlebars',
'text'
],

function (Handlebars, text) {

var _buildMap = {};
var _buildTemplate = Handlebars.compile(
Expand Down
10 changes: 8 additions & 2 deletions public/js/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
require([
'app', 'jquery', 'jquery.validate', 'jquery.timeago', 'hashgrid'
], function(app, $) {
'app',
'jquery',
'jquery.validate',
'jquery.timeago',
'hashgrid'
],

function(app, $) {

$(function() { app.init(); });

Expand Down
7 changes: 5 additions & 2 deletions public/js/model/Link.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
define([
'underscore', 'backbone'
], function(_, Backbone) {
'underscore',
'backbone'
],

function(_, Backbone) {

'use strict';

Expand Down
8 changes: 6 additions & 2 deletions public/js/model/Links.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
define([
'underscore', 'backbone', './Link'
], function(_, Backbone, LinkModel) {
'underscore',
'backbone',
'./Link'
],

function(_, Backbone, LinkModel) {

'use strict';

Expand Down
8 changes: 6 additions & 2 deletions public/js/view/AddLink.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
define([
'underscore', 'jquery', 'backbone'
], function(_, $, Backbone) {
'underscore',
'jquery',
'backbone'
],

function(_, $, Backbone) {

'use strict';

Expand Down
15 changes: 12 additions & 3 deletions public/js/view/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
define([
'underscore', 'jquery', 'backbone', './LinkList', './StarFilter', './Search',
'./AddLink', './Status', './Pagination'
], function(_, $, Backbone, LinkListView, StarFilterView, SearchView,
'underscore',
'jquery',
'backbone',
'./LinkList',
'./StarFilter',
'./Search',
'./AddLink',
'./Status',
'./Pagination'
],

function(_, $, Backbone, LinkListView, StarFilterView, SearchView,
AddLinkView, StatusView, PaginationView) {

'use strict';
Expand Down
9 changes: 7 additions & 2 deletions public/js/view/Link.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
define([
'underscore', 'jquery', 'backbone', 'hbs!template/link'
], function(_, $, Backbone, linkTemplate) {
'underscore',
'jquery',
'backbone',
'hbs!template/link'
],

function(_, $, Backbone, linkTemplate) {

'use strict';

Expand Down
9 changes: 7 additions & 2 deletions public/js/view/LinkList.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
define([
'underscore', 'jquery', 'backbone', './Link',
'underscore',
'jquery',
'backbone',
'./Link',
'hbs!template/empty-list'
], function(_, $, Backbone, LinkView, emptyListTemplate) {
],

function(_, $, Backbone, LinkView, emptyListTemplate) {

'use strict';

Expand Down
8 changes: 6 additions & 2 deletions public/js/view/Pagination.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
define([
'underscore', 'jquery', 'backbone'
], function(_, $, Backbone) {
'underscore',
'jquery',
'backbone'
],

function(_, $, Backbone) {

var delay = 750;
var threshold = 350;
Expand Down
8 changes: 6 additions & 2 deletions public/js/view/Search.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
define([
'underscore', 'jquery', 'backbone'
], function(_, $, Backbone) {
'underscore',
'jquery',
'backbone'
],

function(_, $, Backbone) {

'use strict';

Expand Down
8 changes: 6 additions & 2 deletions public/js/view/StarFilter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
define([
'underscore', 'jquery', 'backbone'
], function(_, $, Backbone) {
'underscore',
'jquery',
'backbone'
],

function(_, $, Backbone) {

'use strict';

Expand Down
8 changes: 6 additions & 2 deletions public/js/view/Status.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
define([
'underscore', 'jquery', 'backbone'
], function(_, $, Backbone) {
'underscore',
'jquery',
'backbone'
],

function(_, $, Backbone) {

return Backbone.View.extend({
initialize: function() {
Expand Down

0 comments on commit e6f9fd6

Please sign in to comment.