]> source.dussan.org Git - jquery.git/commitdiff
Fixed #753 in Opera and IE
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 7 Jan 2007 23:19:13 +0000 (23:19 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 7 Jan 2007 23:19:13 +0000 (23:19 +0000)
src/jquery/jquery.js

index b6d1dece575c349d93127158945922dcd8351ee9..e38044147702736a15d83d7edbfc674b6fa56d0a 100644 (file)
@@ -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] );
                        }