mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
note about commonjs / jquery
This commit is contained in:
@@ -2988,8 +2988,7 @@ var model = localBackbone.Model.extend(...);
|
||||
<br />
|
||||
If you have multiple copies of <tt>jQuery</tt> on the page, or simply want
|
||||
to tell Backbone to use a particular object as its DOM / Ajax library,
|
||||
this is the property for you. If you're loading Backbone with CommonJS
|
||||
(e.g. node, component, or browserify) you must set this property manually.
|
||||
this is the property for you.
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
@@ -4217,6 +4216,10 @@ ActiveRecord::Base.include_root_in_json = false
|
||||
event methods for <tt>pushState</tt> and <tt>hashChange</tt> listeners.
|
||||
We're native all the way.
|
||||
</li>
|
||||
<li>
|
||||
Also on the subject of jQuery, if you're using Backbone with CommonJS (node, browserify, webpack)
|
||||
Backbone will automatically try to load jQuery for you.
|
||||
</li>
|
||||
<li>
|
||||
Added <tt>modelId</tt> to Collection for generating unique ids on
|
||||
polymorphic collections. Handy for cases when your model ids would
|
||||
|
||||
Reference in New Issue
Block a user