save -> saveLocation

This commit is contained in:
Jeremy Ashkenas
2010-11-09 12:38:59 -05:00
parent 1f740b93f0
commit 1e0986b4e7

View File

@@ -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;