Skip to content

Commit 1f7bb42

Browse files
committed
WIP: remove dumps
1 parent fbe23fe commit 1f7bb42

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/ng/browser.js

-3
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ function Browser(window, document, $log, $sniffer) {
146146
* @param {boolean=} replace Should new url replace current history record ?
147147
*/
148148
self.url = function(url, replace) {
149-
dump('self.url')
150149
// Android Browser BFCache causes location, history reference to become stale.
151150
if (location !== window.location) location = window.location;
152151
if (history !== window.history) history = window.history;
@@ -176,7 +175,6 @@ function Browser(window, document, $log, $sniffer) {
176175
// - newLocation is a workaround for an IE7-9 issue with location.replace and location.href
177176
// methods not updating location.href synchronously.
178177
// - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172
179-
dump(newLocation || location.href.replace(/%27/g,"'"))
180178
return newLocation || location.href.replace(/%27/g,"'");
181179
}
182180
};
@@ -216,7 +214,6 @@ function Browser(window, document, $log, $sniffer) {
216214
* @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
217215
*/
218216
self.onUrlChange = function(callback) {
219-
dump('onUrlChange')
220217
// TODO(vojta): refactor to use node's syntax for events
221218
if (!urlChangeInit) {
222219
// We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)

src/ng/location.js

-1
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,6 @@ function $LocationProvider(){
734734
$rootScope.$watch(function $locationWatch() {
735735
var oldUrl = $browser.url();
736736
var currentReplace = $location.$$replace;
737-
dump(currentReplace, oldUrl, $location.absUrl());
738737

739738
if (!changeCounter || oldUrl != $location.absUrl()) {
740739
changeCounter++;

0 commit comments

Comments
 (0)