Skip to content

Commit 545d41c

Browse files
committed
Fix for controllerAs syntax in markers
1 parent ea33cd0 commit 545d41c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/scripts/services/attr2_options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ ngMap.service('Attr2Options', ['$parse', 'NavigatorGeolocation', 'GeoCoder', fun
254254

255255
var args = scope.$eval("["+argsStr+"]");
256256
return function(event) {
257-
scope[funcName].apply(this, [event].concat(args));
257+
function index(obj,i) {return obj[i]}
258+
f = funcName.split('.').reduce(index, scope)
259+
f.apply(this, [event].concat(args));
258260
scope.$apply();
259261
}
260262
}

0 commit comments

Comments
 (0)