From fbaa1968b7c596ccb63ea8b4be1d3bd92eda50d8 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 9 Apr 2012 14:27:14 -0700 Subject: chore($browser): remove the addJs method this was never meant to be a public api used by apps. I refactored the code to hide the functionality. BREAKING CHANGE: $browser.addJs method was removed apps that depended on this functionality should either use many of the existing script loaders or create a simple helper method specific to the app. --- src/ngMock/angular-mocks.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/ngMock/angular-mocks.js') diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 8c50c90e..42d921e3 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -137,13 +137,6 @@ angular.mock.$Browser = function() { self.baseHref = function() { return this.$$baseHref; }; - - self.$$scripts = []; - self.addJs = function(url, done) { - var script = {url: url, done: done}; - self.$$scripts.push(script); - return script; - }; }; angular.mock.$Browser.prototype = { -- cgit v1.2.3