diff --git a/www/js/controllers.js b/www/js/controllers.js index 23ca14a..8056d0a 100644 --- a/www/js/controllers.js +++ b/www/js/controllers.js @@ -15,7 +15,7 @@ angular.module('frontpage.controllers', ['ionic.services.analytics']) var iab = window.open(url,'_blank',params); // cordova tends to keep these in memory after they're gone so we'll help it forget iab.addEventListener('exit', function() { - iab.removeEventListener('exit', argument.callee); + iab.removeEventListener('exit', arguments.callee); iab.close(); iab = null; }); @@ -206,4 +206,4 @@ angular.module('frontpage.controllers', ['ionic.services.analytics']) $scope.loadComments = function(storyID){ $state.go('tab.search-comments',{storyID:storyID}); } -}); \ No newline at end of file +});