Skip to content

Commit 6c9b6ea

Browse files
committed
update docs
1 parent b1bfbc4 commit 6c9b6ea

File tree

7 files changed

+27
-26
lines changed

7 files changed

+27
-26
lines changed

.bithoundrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"mocha",
6363
"phantomjs-prebuilt",
6464
"promiscuous",
65+
"remark-lint",
6566
"rimraf",
6667
"sinon",
6768
"sinon-chai",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ See [contributing guide](.github/CONTRIBUTING.md)
108108

109109
| Date | Version | Description |
110110
| ----------- | ------- | ----------- |
111-
| 2016-12-20 | v1.0.24 | Maintenance |
111+
| 2016-12-31 | v1.0.25 | Maintenance |
112112
| 2016-11-23 | v1.0.19 | Use forked version of html5-desktop-notifications in order to resolve few issues |
113113
| 2016-11-19 | v1.0.18 | Maintenance |
114114
| 2016-11-04 | v1.0.16 | Upgrading to html5-desktop-notifications 3.0.0 |

angular-web-notification.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @description
1717
* Initializes the angular web notification service.
1818
*
19-
* @param {object} NotifyLib - The HTML5 notification library instance
19+
* @param {Object} NotifyLib - The HTML5 notification library instance
2020
*/
2121
(function initWebNotification(NotifyLib) {
2222
'use strict';
@@ -28,7 +28,7 @@
2828
* @name webNotification
2929
* @namespace webNotification
3030
* @author Sagie Gur-Ari
31-
* @returns {object} The service instance
31+
* @returns {Object} The service instance
3232
*
3333
* @description
3434
* The web notification service wraps the HTML 5 Web Notifications API as an angular service.
@@ -62,7 +62,7 @@
6262
* @function
6363
* @memberof! webNotification
6464
* @private
65-
* @returns {boolean} True if permission is granted, else false
65+
* @returns {Boolean} True if permission is granted, else false
6666
*/
6767
get: function getPermission() {
6868
var permission = NotifyLib.permission;
@@ -110,7 +110,7 @@
110110
* @description
111111
* Checks if web notifications are permitted.
112112
*
113-
* @returns {boolean} True if allowed to show web notifications
113+
* @returns {Boolean} True if allowed to show web notifications
114114
*/
115115
var isEnabled = function () {
116116
return service.permissionGranted;
@@ -126,10 +126,10 @@
126126
* @description
127127
* Displays the web notification and returning a 'hide' notification function.
128128
*
129-
* @param {string} title - The notification title text (defaulted to empty string if null is provided)
130-
* @param {object} options - Holds the notification data (web notification API spec for more info)
131-
* @param {string} [options.icon=/favicon.ico] - The notification icon (defaults to the website favicon.ico)
132-
* @param {number} [options.autoClose] - Auto closes the notification after the provided amount of millies (0 or undefined for no auto close)
129+
* @param {String} title - The notification title text (defaulted to empty string if null is provided)
130+
* @param {Object} options - Holds the notification data (web notification API spec for more info)
131+
* @param {String} [options.icon=/favicon.ico] - The notification icon (defaults to the website favicon.ico)
132+
* @param {Number} [options.autoClose] - Auto closes the notification after the provided amount of millies (0 or undefined for no auto close)
133133
* @param {function} [options.onClick] - An optional onclick event handler
134134
* @returns {function} The hide notification function
135135
*/
@@ -172,8 +172,8 @@
172172
* @description
173173
* Returns an object with the show notification input.
174174
*
175-
* @param {array} argumentsArray - An array of all arguments provided to the show notification function
176-
* @returns {object} The parsed data
175+
* @param {Array} argumentsArray - An array of all arguments provided to the show notification function
176+
* @returns {Object} The parsed data
177177
*/
178178
var parseInput = function (argumentsArray) {
179179
//callback is always the last argument
@@ -218,10 +218,10 @@
218218
* @memberof! webNotification
219219
* @alias webNotification.showNotification
220220
* @public
221-
* @param {string} [title] - The notification title text (defaulted to empty string if null is provided)
222-
* @param {object} [options] - Holds the notification data (web notification API spec for more info)
223-
* @param {string} [options.icon=/favicon.ico] - The notification icon (defaults to the website favicon.ico)
224-
* @param {number} [options.autoClose] - Auto closes the notification after the provided amount of millies (0 or undefined for no auto close)
221+
* @param {String} [title] - The notification title text (defaulted to empty string if null is provided)
222+
* @param {Object} [options] - Holds the notification data (web notification API spec for more info)
223+
* @param {String} [options.icon=/favicon.ico] - The notification icon (defaults to the website favicon.ico)
224+
* @param {Number} [options.autoClose] - Auto closes the notification after the provided amount of millies (0 or undefined for no auto close)
225225
* @param {function} [options.onClick] - An optional onclick event handler
226226
* @param {ShowNotificationCallback} [callback] - Called after the show is handled.
227227
* @example

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-web-notification",
3-
"version": "1.0.24",
3+
"version": "1.0.25",
44
"description": "AngularJS service for displaying web notifications.",
55
"authors": [
66
"Sagie Gur-Ari <sagiegurari@gmail.com>"

docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
| Date | Version | Description |
22
| ----------- | ------- | ----------- |
3-
| 2016-12-20 | v1.0.24 | Maintenance |
3+
| 2016-12-31 | v1.0.25 | Maintenance |
44
| 2016-11-23 | v1.0.19 | Use forked version of html5-desktop-notifications in order to resolve few issues |
55
| 2016-11-19 | v1.0.18 | Maintenance |
66
| 2016-11-04 | v1.0.16 | Upgrading to html5-desktop-notifications 3.0.0 |

docs/api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Objects
22

33
<dl>
4-
<dt><a href="#webNotification">webNotification</a> ⇒ <code>object</code></dt>
4+
<dt><a href="#webNotification">webNotification</a> ⇒ <code>Object</code></dt>
55
<dd><p>The web notification service wraps the HTML 5 Web Notifications API as an angular service.</p>
66
</dd>
77
</dl>
@@ -16,15 +16,15 @@
1616

1717
<a name="webNotification"></a>
1818

19-
## webNotification ⇒ <code>object</code>
19+
## webNotification ⇒ <code>Object</code>
2020
The web notification service wraps the HTML 5 Web Notifications API as an angular service.
2121

2222
**Kind**: global namespace
23-
**Returns**: <code>object</code> - The service instance
23+
**Returns**: <code>Object</code> - The service instance
2424
**Ngdoc**: service
2525
**Author:** Sagie Gur-Ari
2626

27-
* [webNotification](#webNotification) ⇒ <code>object</code>
27+
* [webNotification](#webNotification) ⇒ <code>Object</code>
2828
* [.allowRequest](#webNotification.allowRequest)
2929
* [.permissionGranted](#webNotification.permissionGranted)
3030
* [.showNotification([title], [options], [callback])](#webNotification.showNotification)
@@ -52,10 +52,10 @@ case of no errors) and a 'hide' function which can be used to hide the notificat
5252

5353
| Param | Type | Default | Description |
5454
| --- | --- | --- | --- |
55-
| [title] | <code>string</code> | | The notification title text (defaulted to empty string if null is provided) |
56-
| [options] | <code>object</code> | | Holds the notification data (web notification API spec for more info) |
57-
| [options.icon] | <code>string</code> | <code>&quot;/favicon.ico&quot;</code> | The notification icon (defaults to the website favicon.ico) |
58-
| [options.autoClose] | <code>number</code> | | Auto closes the notification after the provided amount of millies (0 or undefined for no auto close) |
55+
| [title] | <code>String</code> | | The notification title text (defaulted to empty string if null is provided) |
56+
| [options] | <code>Object</code> | | Holds the notification data (web notification API spec for more info) |
57+
| [options.icon] | <code>String</code> | <code>/favicon.ico</code> | The notification icon (defaults to the website favicon.ico) |
58+
| [options.autoClose] | <code>Number</code> | | Auto closes the notification after the provided amount of millies (0 or undefined for no auto close) |
5959
| [options.onClick] | <code>function</code> | | An optional onclick event handler |
6060
| [callback] | <code>[ShowNotificationCallback](#ShowNotificationCallback)</code> | | Called after the show is handled. |
6161

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-web-notification",
3-
"version": "1.0.24",
3+
"version": "1.0.25",
44
"description": "AngularJS service for displaying web notifications.",
55
"author": {
66
"name": "Sagie Gur-Ari",

0 commit comments

Comments
 (0)