File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ angular.module("uiGmapgoogle-maps.directives.api")
4242
4343 else
4444 $http .get (scope .template , { cache : $templateCache })
45- .success (template) =>
45+ .then (template) =>
4646 templateScope = scope .$new ()
4747 controlDiv .append template
4848
@@ -54,7 +54,7 @@ angular.module("uiGmapgoogle-maps.directives.api")
5454 # use children() rather than content() as the former seems to trim the content
5555 control = $compile (controlDiv .children ())(templateScope)
5656
57- .error (error) =>
57+ .catch (error) =>
5858 @$log .error ' mapControl: template could not be found'
5959 .then =>
6060 pushControl (map, control, index)
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ angular.module('uiGmapgoogle-maps')
4242 $templateCache .put ' uigmap-searchbox-default.tpl.html' , ' <input type="text">'
4343 scope .template = ' uigmap-searchbox-default.tpl.html'
4444 $http .get (scope .template , { cache : $templateCache })
45- .success (template) =>
45+ .then (template) =>
4646 if angular .isUndefined scope .events
4747 @$log .error ' searchBox: the events property is required'
4848 return
You can’t perform that action at this time.
0 commit comments