diff options
| author | Vojta Jina | 2010-10-18 19:19:49 +0100 | 
|---|---|---|
| committer | Misko Hevery | 2010-10-18 14:13:48 -0700 | 
| commit | d0e55bf4465bdfe6660f75d26882bc1d9da9b924 (patch) | |
| tree | d8c4c91c072d43b54768fca1611cfd675117897d /src | |
| parent | 1cad16c6f9144113e2b458ce91af8fcb0211c173 (diff) | |
| download | angular.js-d0e55bf4465bdfe6660f75d26882bc1d9da9b924.tar.bz2 | |
Removed $location.cancel() method (and related test)
Diffstat (limited to 'src')
| -rw-r--r-- | src/services.js | 15 | 
1 files changed, 1 insertions, 14 deletions
diff --git a/src/services.js b/src/services.js index f9133aca..0b5923c6 100644 --- a/src/services.js +++ b/src/services.js @@ -15,7 +15,7 @@ angularServiceInject("$document", function(window){  angularServiceInject("$location", function(browser) {    var scope = this, -      location = {toString:toString, update:update, updateHash: updateHash, cancel: cancel}, +      location = {toString:toString, update:update, updateHash: updateHash},        lastLocationHref = browser.getUrl(),        lastLocationHash; @@ -101,19 +101,6 @@ angularServiceInject("$location", function(browser) {      return location.href;    } -  /** -   * Cancel change of the location -   * -   * Calling update(), updateHash() or setting a property does not immediately -   * change the browser's url. Url is changed at the end of $eval() -   * -   * By calling this method, you can cancel the change (before end of $eval()) -   * -   */ -  function cancel() { -    update(lastLocationHref); -  } -    // INNER METHODS    /**  | 
