Reorder main & features. Less silly trimming.

This commit is contained in:
Nicolas Stepien 2012-09-26 03:14:42 +02:00
parent fca313f582
commit 4a34cd7021
4 changed files with 552 additions and 554 deletions

File diff suppressed because it is too large Load Diff

View File

@ -66,8 +66,8 @@ module.exports = function(grunt) {
'<file_template:lib/ui.coffee>',
'<file_template:lib/$.coffee>',
'<file_template:src/globals.coffee>',
'<file_template:src/main.coffee>',
'<file_template:src/features.coffee>'
'<file_template:src/features.coffee>',
'<file_template:src/main.coffee>'
],
dest: 'tmp/script.coffee'
},

View File

@ -1288,7 +1288,3 @@ ThreadUpdater =
$.add @threadRoot, nodes
if scroll
nodes[0].scrollIntoView()
Main.init()

View File

@ -83,7 +83,7 @@ class Post
nodes = d.evaluate './/br|.//text()', bq, null, 7, null
for i in [0...nodes.snapshotLength]
text.push if data = nodes.snapshotItem(i).data then data else '\n'
@info.comment = text.join('').replace /^\n+|\n+$| +(?=\n|$)/g, ''
@info.comment = text.join('').trim().replace /\s+$/gm, ''
quotes = {}
for quotelink in $$ '.quotelink', @nodes.comment
@ -456,3 +456,5 @@ Main =
alert 'Here be settings'
css: """<%= grunt.file.read('css/style.css') %>"""
Main.init()