@@ -177,7 +177,7 @@ Object.extend(String.prototype, (function() {
177
177
* ##### Examples
178
178
*
179
179
* 'apple, pear & orange'.scan(/\w+/, alert);
180
- * // -> 'apple pear orange' (and displays 'apple', 'pear' and 'orange' in three successive alert dialogs)
180
+ * // -> 'apple pear & orange' (and displays 'apple', 'pear' and 'orange' in three successive alert dialogs)
181
181
*
182
182
* Can be used to populate an array:
183
183
*
@@ -382,11 +382,9 @@ Object.extend(String.prototype, (function() {
382
382
* }
383
383
*
384
384
* (You can leave off the `window.` part of that, but it's bad form.)
385
- * Evaluates the content of any `script` block present in the string. Returns
386
- * an array containing the value returned by each script.
387
385
**/
388
386
function evalScripts ( ) {
389
- return this . extractScripts ( ) . map ( function ( script ) { return eval ( script ) } ) ;
387
+ return this . extractScripts ( ) . map ( function ( script ) { return eval ( script ) ; } ) ;
390
388
}
391
389
392
390
/** related to: String#unescapeHTML
@@ -451,7 +449,7 @@ Object.extend(String.prototype, (function() {
451
449
* 'section=blog&id=45'.toQueryParams();
452
450
* // -> {section: 'blog', id: '45'}
453
451
*
454
- * 'section=blog;id=45'.toQueryParams();
452
+ * 'section=blog;id=45'.toQueryParams(';' );
455
453
* // -> {section: 'blog', id: '45'}
456
454
*
457
455
* 'http://www.example.com?section=blog&id=45#comments'.toQueryParams();
0 commit comments