Skip to content
Browse files

Fixes issue mentioned in comments for requirejs/r.js#221 about Java u…

…sage
  • Loading branch information...
1 parent 823ce0c commit 83a149b1a536a496388365b3dcda0238e16e122c @jrburke jrburke committed Jun 6, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 text.js
View
8 text.js
@@ -1,5 +1,5 @@
/**
- * @license RequireJS text 2.0.6 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
+ * @license RequireJS text 2.0.6+ Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/requirejs/text for details
*/
@@ -23,7 +23,7 @@ define(['module'], function (module) {
masterConfig = (module.config && module.config()) || {};
text = {
- version: '2.0.6',
+ version: '2.0.6+',
strip: function (content) {
//Strips <?xml ...?> declarations so that external SVG and XML
@@ -317,7 +317,9 @@ define(['module'], function (module) {
line = line.substring(1);
}
- stringBuffer.append(line);
+ if (line !== null) {
+ stringBuffer.append(line);
+ }
while ((line = input.readLine()) !== null) {
stringBuffer.append(lineSeparator);

0 comments on commit 83a149b

Please sign in to comment.
Something went wrong with that request. Please try again.