[Pkg-javascript-commits] [backbone] 129/211: Adding in a note about Backbone.history.start() returning a boolean for whether or not a match has been found in the current URL fragment. Thanks to XiXora for the recommendation.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.0
in repository backbone.
commit a00b7983186c51f31cb105e0ca9b1d4bc25607ea
Author: Samuel Clay <samuel at ofbrooklyn.com>
Date: Mon Apr 25 13:07:35 2011 -0400
Adding in a note about Backbone.history.start() returning a boolean for whether or not a match has been found in the current URL fragment. Thanks to XiXora for the recommendation.
---
index.html | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/index.html b/index.html
index 9749d3c..77d37db 100644
--- a/index.html
+++ b/index.html
@@ -1553,6 +1553,12 @@ openPage: function(pageNumber) {
and all of the routes are set up properly, call <tt>Backbone.history.start()</tt>
to begin monitoring <tt>hashchange</tt> events, and dispatching routes.
</p>
+
+ <p>
+ When called, if a route succeeds with a match for the current URL,
+ <tt>Backbone.history.start()</tt> returns <tt>true</tt>. If no defined
+ routes matches the current URL fragment, it returns <tt>false</tt>.
+ </p>
<pre>
$(function(){
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list