From 6c262efc86005df350a413803bada5cf5847050c Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 10 Feb 2015 14:33:15 -0600 Subject: [PATCH] chore(): correct deprecated console warning Closes #2569 --- js/angular/controller/navBarController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular/controller/navBarController.js b/js/angular/controller/navBarController.js index 1e8da8cbd0..9f451a04b7 100644 --- a/js/angular/controller/navBarController.js +++ b/js/angular/controller/navBarController.js @@ -433,7 +433,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io }; function deprecatedWarning(oldMethod, newMethod) { var warn = console.warn || console.log; - warn && warn('navBarController.' + oldMethod + ' is deprecated, please use ' + newMethod + ' instead'); + warn && warn.call(console, 'navBarController.' + oldMethod + ' is deprecated, please use ' + newMethod + ' instead'); } // END DEPRECATED -------