File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 15
15
'addr_field' : null ,
16
16
'callback' : function ( location , gmap ) { } ,
17
17
'error_callback' : function ( status ) {
18
- $ this. settings . search_error_el . text ( status ) ;
18
+ this . settings . search_error_el . text ( status ) ;
19
19
} ,
20
20
} , settings ) ;
21
21
72
72
$this . insertMarker ( results [ 0 ] . geometry . location ) ;
73
73
$this . setAddress ( results [ 0 ] . formatted_address )
74
74
} else {
75
- $this . settings . error_callback ( status ) ;
75
+ $this . settings . error_callback . call ( $this , status ) ;
76
76
}
77
77
} ) ;
78
78
} ,
83
83
if ( status == google . maps . GeocoderStatus . OK ) {
84
84
$this . setAddress ( results [ 0 ] . formatted_address ) ;
85
85
} else {
86
- $this . settings . error_callback ( status ) ;
86
+ $this . settings . error_callback . call ( $this , status ) ;
87
87
}
88
88
} ) ;
89
89
} ,
105
105
$this . map . setZoom ( 16 ) ;
106
106
} ,
107
107
function ( error ) {
108
- $this . settings . error_callback ( error ) ;
108
+ $this . settings . error_callback . call ( $this , error ) ;
109
109
}
110
110
) ;
111
111
} else {
112
- $this . settings . search_error_el . text ( 'Your broswer does not support geolocation' ) ;
112
+ $this . settings . search_error_el . text ( 'Your browser does not support geolocation' ) ;
113
113
}
114
114
115
115
} ,
178
178
'addr_field' : null ,
179
179
'callback' : function ( location , gmap ) { } ,
180
180
'error_callback' : function ( status ) {
181
- $ this. settings . search_error_el . text ( status ) ;
181
+ this . settings . search_error_el . text ( status ) ;
182
182
}
183
183
}
184
184
You can’t perform that action at this time.
0 commit comments