Permalink
Browse files

Formatting fixes.

- Broke up >80 character line lengths.
  • Loading branch information...
0xfe committed Nov 19, 2012
1 parent eaf6425 commit 25a47f8dd135e84a2ba1ad1b8bca1388732243a7
Showing with 134 additions and 91 deletions.
  1. +0 −7 .gitignore
  2. +4 −2 src/stavenote.js
  3. +2 −2 src/tables.js
  4. +128 −80 tests/rhythm_tests.js
View
@@ -10,17 +10,10 @@ ruby_sess.*
# except foo.o which is hand maintained
!foo.o
.DS_Store
-
.idea/VexFlow.iml
-
.idea/encodings.xml
-
.idea/misc.xml
-
.idea/modules.xml
-
.idea/scopes/scope_settings.xml
-
.idea/vcs.xml
-
.idea/workspace.xml
View
@@ -371,7 +371,8 @@ Vex.Flow.StaveNote.prototype.draw = function() {
var highest_line = 5;
var lowest_line = 1;
- // private function to draw slash note heads, glyphs were not slanted enough and too small
+ // Private function to draw slash note heads, glyphs were not slanted enough
+ // and too small.
function drawSlashNoteHead(stavenote, ctx, x, y) {
ctx.beginPath();
ctx.moveTo(x, y + 11);
@@ -433,7 +434,8 @@ Vex.Flow.StaveNote.prototype.draw = function() {
if (render_head) {
head_x = Math.round(head_x);
- // if a slash note, draw 'manually' as font glyphs do not slant enough and are too small
+ // if a slash note, draw 'manually' as font glyphs do not slant enough
+ // and are too small.
if (this.noteType == "s") {
drawSlashNoteHead(this, ctx, head_x, y);
} else {
View
@@ -149,7 +149,6 @@ Vex.Flow.keyProperties.note_glyph = {
'X1': { code: "v95", shift_right: -0.5 },
'X2': { code: "v7f", shift_right: 0.5 },
'X3': { code: "v3b", shift_right: -2 }
-
}
Vex.Flow.integerToNote = function(integer) {
@@ -453,7 +452,8 @@ Vex.Flow.parseNoteData = function(noteData) {
var type = noteData.type;
if (type) {
- if (!(type === "n" || type === "r" || type === "h" || type === "m" || type === "s")) {
+ if (!(type === "n" || type === "r" || type === "h" ||
+ type === "m" || type === "s")) {
return null;
}
} else {
Oops, something went wrong.

0 comments on commit 25a47f8

Please sign in to comment.