[Pkg-javascript-commits] [backbone] 104/211: Documenting the new Backbone.noConflict() method.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:09 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 f4cfbd633df0a34a388c4e039658e63495c20c5e
Author: Samuel Clay <samuel at ofbrooklyn.com>
Date: Wed Mar 23 15:10:58 2011 -0400
Documenting the new Backbone.noConflict() method.
---
index.html | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/index.html b/index.html
index 22863b1..eb32fac 100644
--- a/index.html
+++ b/index.html
@@ -265,6 +265,13 @@
<li>– <a href="#View-delegateEvents">delegateEvents</a></li>
</ul>
+ <a class="toc_title" href="#Utility">
+ Utility
+ </a>
+ <ul class="toc_section">
+ <li>– <a href="#Utility-noConflict">noConflict</a></li>
+ </ul>
+
<a class="toc_title" href="#examples">
Examples
</a>
@@ -1889,6 +1896,26 @@ var DocumentView = Backbone.View.extend({
});
</pre>
+ <h2 id="Utility">Backbone Utilities</h2>
+
+ <p>
+
+ </p>
+
+ <p id="Utility-noConflict">
+ <b class="header">noConflict</b><code>var backbone = Backbone.noConflict();</code>
+ <br />
+ Returns the <tt>Backbone</tt> object back to its original value. You can
+ use the return value of <tt>Backbone.noConflict()</tt> to keep a local
+ reference to Backbone. Useful for embedding Backbone on third-party
+ websites, where you don't want to clobber the existing Backbone.
+ </p>
+
+<pre>
+var localBackbone = Backbone.noConflict();
+var model = localBackbone.Model.extend(...);
+</pre>
+
<h2 id="examples">Examples</h2>
<p id="examples-todos">
--
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