Added a sublime-project file for Sublime Text 2 that contains the detected linting and standards set. Allows Sublime Text 2 to automatically follow the standards and have live linting enabled. Trimmed useless whitespace.

This commit is contained in:
Benjamin Lupton
2012-05-29 11:26:26 +10:00
parent 16022b81c3
commit 1059314258
11 changed files with 733 additions and 675 deletions

View File

@@ -21,8 +21,8 @@
console.profileEnd();
}
$canvas.css({
position: 'absolute',
left: 0,
position: 'absolute',
left: 0,
top: 0
}).appendTo(document.body);
$canvas.siblings().toggle();
@@ -32,7 +32,7 @@
throwMessage("Canvas Render " + ($canvas.is(':visible') ? "visible" : "hidden"));
});
throwMessage('Screenshot created in '+ ((finishTime.getTime()-timer)) + " ms<br />",4000);
// test if canvas is read-able
try {
$canvas[0].toDataURL();
@@ -43,7 +43,7 @@
}
}
};
html2obj = html2canvas(this, options);
function throwMessage(msg,duration){