Permalink
Browse files

essage:fixed JSLint reported issues

  • Loading branch information...
1 parent 43d4a4f commit a2d15bfd0324fc523ac823d681b53967ac887daa @Haacked committed Jan 4, 2010
Showing with 5 additions and 5 deletions.
  1. +1 −1 index.html
  2. +1 −1 lib/demo-style.css
  3. +1 −1 src/jquery.livepreview.js
  4. +2 −2 src/jquery.livepreview.min.js
View
@@ -3,7 +3,7 @@
<head>
<title></title>
<script type="text/javascript" src="lib/jquery-1.3.2.min.js"></script>
- <script type="text/javascript" src="src/jquery.livepreview.min.js"></script>
+ <script type="text/javascript" src="src/jquery.livepreview.js"></script>
<script type="text/javascript">
/*
View
@@ -30,7 +30,7 @@ textarea.source
div.preview {
width: 400px;
- height: 200px;
+ min-height: 200px;
border: solid 1px #000;
background-color: #ffffec;
padding: 5px;
@@ -31,7 +31,7 @@
textarea.reloadPreview = function() {
var previewString = this.val();
- if (previewString.length > 0 && previewString.indexOf('<') > -1) {
+ if (previewString.length > 0) {
previewString = this.htmlUnencode(previewString);
previewString = previewString.replace(opts.paraRegExp, "<p>$1</p><p>$2</p>");
previewString = previewString.replace(opts.lineBreakRegExp, "$1<br />$2");

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit a2d15bf

Please sign in to comment.