mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
teense of clarification about urlRoot being a rare override
This commit is contained in:
@@ -1216,10 +1216,11 @@ account.set({access: "unlimited"}, {
|
||||
<p id="Model-urlRoot">
|
||||
<b class="header">urlRoot</b><code>model.urlRoot or model.urlRoot()</code>
|
||||
<br />
|
||||
Specify a <tt>urlRoot</tt> if you're using a model outside of a collection,
|
||||
Specify a <tt>urlRoot</tt> if you're using a model <i>outside</i> of a collection,
|
||||
to enable the default <a href="#Model-url">url</a> function to generate
|
||||
URLs based on the model id. <tt>"/[urlRoot]/id"</tt><br />
|
||||
Note that <tt>urlRoot</tt> may also be defined as a function.
|
||||
Normally, you won't need to define this.
|
||||
Note that <tt>urlRoot</tt> may also be a function.
|
||||
</p>
|
||||
|
||||
<pre class="runnable">
|
||||
|
||||
Reference in New Issue
Block a user