Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 98da40d

Browse files
committed
$http's deprecated custom callback methods - success() and error() - have been removed
1 parent 3b82ee7 commit 98da40d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/coffee/directives/api/control.coffee

+2-2
Original file line numberDiff line numberDiff 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)

src/coffee/directives/search-box.coffee

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)