From 1e0986b4e76a52d84921b665b9aaefe3cceea63f Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 9 Nov 2010 12:38:59 -0500 Subject: [PATCH] save -> saveLocation --- backbone.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backbone.js b/backbone.js index fe07c2f7..443c038a 100644 --- a/backbone.js +++ b/backbone.js @@ -603,8 +603,8 @@ }, // Simply proxy to `Backbone.history` to save a fragment into the history. - save : function(fragment) { - Backbone.history.save(fragment); + saveLocation : function(fragment) { + Backbone.history.saveLocation(fragment); }, // Bind all defined routes to `Backbone.history`. @@ -710,7 +710,7 @@ // Save a fragment into the hash history. You are responsible for properly // URL-encoding the fragment in advance. This does not trigger // a `hashchange` event. - save : function(fragment) { + saveLocation : function(fragment) { fragment = (fragment || '').replace(hashStrip, ''); if (this.fragment == fragment) return; window.location.hash = this.fragment = fragment;