aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery/jquery.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jquery/jquery.js')
-rw-r--r--src/jquery/jquery.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index b6d1dece5..e38044147 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1390,8 +1390,8 @@ jQuery.extend({
},
parseSetter: function(value) {
- if( typeof value == "string" && value[0] == "$" ) {
- var m = value.match(/^\${(.*)}$/);
+ if( typeof value == "string" && value.charAt(0) == "$" ) {
+ var m = value.match(/{(.*)}$/);
if ( m && m[1] ) {
value = new Function( "return " + m[1] );
}