com web/php: fix "Uncaught TypeError: (intermediate value)(...) is not a function" JavaScript error: js/common.js
| From: | Paul Dragoonis | Date: | Tue, 23 Jun 2015 22:41:07 +0000 |
| Subject: | com web/php: fix "Uncaught TypeError: (intermediate value)(...) is not a function" JavaScript error: js/common.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-21597@lists.php.net to get a copy of this message | ||
Commit: 40a23a5a5fae1c3b4eef4f8359a26fecd57052ab
Author: Peter Cowburn <salathe@php.net> Tue, 23 Jun 2015 23:41:07 +0100
Parents: 460415724a6cf08b11f9f9435c658f4f33250cca
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=40a23a5a5fae1c3b4eef4f8359a26fecd57052ab
Log:
fix "Uncaught TypeError: (intermediate value)(...) is not a function" JavaScript error
Changed paths:
M js/common.js
Diff:
diff --git a/js/common.js b/js/common.js
index fc5e1b3..32d2b2c 100755
--- a/js/common.js
+++ b/js/common.js
@@ -3,12 +3,12 @@
String.prototype.escapeSelector = function()
{
return this.replace(/(.|#)([ #;&,.+*~\':"!^$\[\]\(\)=>|\/])/g, '$1' +
'\\\\$2');
-}
+};
String.prototype.toInt = function()
{
return parseInt(this);
-}
+};
/** {{{
* jQuery.ScrollTo - Easy element scrolling using jQuery.