Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1cc6bee

Browse files
committed
docs(browser): moved and migrate browser removed unneeded files.
1 parent a8aa193 commit 1cc6bee

File tree

3 files changed

+23
-51
lines changed

3 files changed

+23
-51
lines changed

angularFiles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ angularFiles = {
44
'src/JSON.js',
55
'src/Injector.js',
66
'src/Resource.js',
7-
'src/Browser.js',
87
'src/sanitizer.js',
98
'src/jqLite.js',
109
'src/apis.js',
10+
'src/service/browser.js',
1111
'src/service/compiler.js',
1212
'src/service/cookieStore.js',
1313
'src/service/cookies.js',

docs/content/api/angular.service.ngdoc

-25
This file was deleted.

src/Browser.js renamed to src/service/Browser.js

+22-25
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ var XHR = window.XMLHttpRequest || function() {
1212

1313

1414
/**
15-
* @ngdoc service
16-
* @name angular.service.$browser
15+
* @ngdoc object
16+
* @name angular.module.NG.$browser
1717
* @requires $log
18-
*
1918
* @description
20-
* Constructor for the object exposed as $browser service.
21-
*
2219
* This object has two goals:
2320
*
2421
* - hide all the global state in the browser caused by the window object
@@ -78,8 +75,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
7875

7976
/**
8077
* @ngdoc method
81-
* @name angular.service.$browser#xhr
82-
* @methodOf angular.service.$browser
78+
* @name angular.module.NG.$browser#xhr
79+
* @methodOf angular.module.NG.$browser
8380
*
8481
* @param {string} method Requested method (get|post|put|delete|head|json)
8582
* @param {string} url Requested url
@@ -157,8 +154,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
157154

158155
/**
159156
* @ngdoc method
160-
* @name angular.service.$browser#addPollFn
161-
* @methodOf angular.service.$browser
157+
* @name angular.module.NG.$browser#addPollFn
158+
* @methodOf angular.module.NG.$browser
162159
*
163160
* @param {function()} fn Poll function to add
164161
*
@@ -197,8 +194,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
197194

198195
/**
199196
* @ngdoc method
200-
* @name angular.service.$browser#url
201-
* @methodOf angular.service.$browser
197+
* @name angular.module.NG.$browser#url
198+
* @methodOf angular.module.NG.$browser
202199
*
203200
* @description
204201
* GETTER:
@@ -211,7 +208,7 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
211208
* Returns its own instance to allow chaining
212209
*
213210
* NOTE: this api is intended for use only by the $location service. Please use the
214-
* {@link angular.service.$location $location service} to change url.
211+
* {@link angular.module.NG.$location $location service} to change url.
215212
*
216213
* @param {string} url New url (when used as setter)
217214
* @param {boolean=} replace Should new url replace current history record ?
@@ -248,8 +245,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
248245

249246
/**
250247
* @ngdoc method
251-
* @name angular.service.$browser#onUrlChange
252-
* @methodOf angular.service.$browser
248+
* @name angular.module.NG.$browser#onUrlChange
249+
* @methodOf angular.module.NG.$browser
253250
* @TODO(vojta): refactor to use node's syntax for events
254251
*
255252
* @description
@@ -265,7 +262,7 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
265262
* The listener gets called with new url as parameter.
266263
*
267264
* NOTE: this api is intended for use only by the $location service. Please use the
268-
* {@link angular.service.$location $location service} to monitor url changes in angular apps.
265+
* {@link angular.module.NG.$location $location service} to monitor url changes in angular apps.
269266
*
270267
* @param {function(string)} listener Listener function to be called when url changes.
271268
* @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
@@ -298,8 +295,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
298295

299296
/**
300297
* @ngdoc method
301-
* @name angular.service.$browser#cookies
302-
* @methodOf angular.service.$browser
298+
* @name angular.module.NG.$browser#cookies
299+
* @methodOf angular.module.NG.$browser
303300
*
304301
* @param {string=} name Cookie name
305302
* @param {string=} value Cokkie value
@@ -359,8 +356,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
359356

360357
/**
361358
* @ngdoc method
362-
* @name angular.service.$browser#defer
363-
* @methodOf angular.service.$browser
359+
* @name angular.module.NG.$browser#defer
360+
* @methodOf angular.module.NG.$browser
364361
* @param {function()} fn A function, who's execution should be defered.
365362
* @param {number=} [delay=0] of milliseconds to defer the function execution.
366363
* @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
@@ -388,8 +385,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
388385
/**
389386
* THIS DOC IS NOT VISIBLE because ngdocs can't process docs for foo#method.method
390387
*
391-
* @name angular.service.$browser#defer.cancel
392-
* @methodOf angular.service.$browser.defer
388+
* @name angular.module.NG.$browser#defer.cancel
389+
* @methodOf angular.module.NG.$browser.defer
393390
*
394391
* @description
395392
* Cancels a defered task identified with `deferId`.
@@ -414,8 +411,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
414411

415412
/**
416413
* @ngdoc method
417-
* @name angular.service.$browser#addCss
418-
* @methodOf angular.service.$browser
414+
* @name angular.module.NG.$browser#addCss
415+
* @methodOf angular.module.NG.$browser
419416
*
420417
* @param {string} url Url to css file
421418
* @description
@@ -432,8 +429,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
432429

433430
/**
434431
* @ngdoc method
435-
* @name angular.service.$browser#addJs
436-
* @methodOf angular.service.$browser
432+
* @name angular.module.NG.$browser#addJs
433+
* @methodOf angular.module.NG.$browser
437434
*
438435
* @param {string} url Url to js file
439436
*

0 commit comments

Comments
 (0)