store arguments are optional

This commit is contained in:
Philip Bjorge 2016-01-20 14:13:25 -08:00
parent d4ffe15f64
commit b878ea9747
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ angular.module('app', ['ngIdle'])
Title.original(Title.original());
Title.value(Title.value());
Title.store(false);
Title.store();
Title.restore();
Title.idleMessage(Title.idleMessage());
Title.timedOutMessage(Title.timedOutMessage());

View File

@ -60,7 +60,7 @@ declare module angular.idle {
* If overwrite is false or unspecified, updates the "original" title with the current document title
* if it has not already been stored. If overwrite is true, the current document title is stored regardless.
*/
store(overwrite: boolean): void;
store(overwrite?: boolean): void;
/**
* Sets the title to the original value (if it was stored or set previously).