This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaults: { | |
| ajaxTimeout: 15000, | |
| autoUpdateAlertTimeShown: 6500, | |
| editTimeWindow: 90, | |
| maxIndentationDepth: 30, | |
| showAutoUpdateAlert: true, | |
| showAvatars: true, | |
| showSignatures: true, | |
| showImages: true, | |
| sortMethod: 'ancestry' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // main.js | |
| App = _.extend({}, Backbone.Events, { | |
| ... | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // main.js | |
| App = { | |
| // Namespaces | |
| Collections: {}, | |
| Models: {}, | |
| Views: {}, | |
| Mixins: {}, | |
| initialize: function() { | |
| this.comments = new App.Collections.Comments({ model: App.Models.Comment }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var compileTemplates = function() { | |
| _.each(App.Views, function(View) { | |
| if (View.prototype.templateId) { | |
| // The templateId references the id of a DOM element containing | |
| // the content of the template | |
| var html = jQuery('#' + View.prototype.templateId).html() || ''; | |
| View.prototype.template = _.template(html); | |
| } | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |
NewerOlder