[Pkg-javascript-commits] [backbone] 188/281: Fixes #720, document 'constructor'

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.9.0
in repository backbone.

commit a881ba6f5a1bbb55287dc3ff9348c7bede7d272d
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Fri Jan 13 11:14:07 2012 -0500

    Fixes #720, document 'constructor'
---
 index.html | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/index.html b/index.html
index 845b6dd..afbc275 100644
--- a/index.html
+++ b/index.html
@@ -602,6 +602,12 @@ new Book({
   author: "Scheherazade"
 });
 </pre>
+  
+    <p>
+      In rare cases, if you're looking to get fancy, 
+      you may want to override <b>constructor</b>, which allows
+      you to replace the actual constructor function for your model.
+    </p>
 
     <p id="Model-get">
       <b class="header">get</b><code>model.get(attribute)</code>

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