[Pkg-javascript-commits] [backbone] 03/34: adding a missing semicolon and using initialize in the demo

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:52 UTC 2014


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

js pushed a commit to tag 0.2.0
in repository backbone.

commit 5f0fe91eff76332abff8f6944c5ba33e06a2ce3e
Author: Jeff Larson <thejefflarson at gmail.com>
Date:   Fri Oct 15 10:57:22 2010 -0400

    adding a missing semicolon and using initialize in the demo
---
 demos/documents.html | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/demos/documents.html b/demos/documents.html
index b8e47ce..6edcec1 100644
--- a/demos/documents.html
+++ b/demos/documents.html
@@ -144,7 +144,7 @@
       {
         "title":"Bayesian Filtering Beyond Binary Classification",
         "created_at":"Aug 10, 2010",
-        "page_image_url":"http://dev.dcloud.org/asset_store/documents/217/pages/bayesian-filtering-beyond-binary-classification-p{page}-{size}.gif?1284663782",
+        "page_image_url":"http://s3.documentcloud.org/documents/217/pages/bayesian-filtering-beyond-binary-classification-p{page}-{size}.gif?1284663782",
         "document_viewer_url":"http://dev.dcloud.org/documents/217-bayesian-filtering-beyond-binary-classification.html",
         "description":"Filter, filter, filter..."
       },
@@ -259,8 +259,7 @@
       "dblclick .document" : "openDocument"
     },
     
-    constructor : function(options) {
-      Backbone.View.call(this, options);
+    initialize : function(options) {
       _.bindAll(this, 'render', 'renderDetail');
       this.model.bind('change', this.render);
     },
@@ -305,7 +304,7 @@
       }
     }
     
-  })
+  });
   
   dc.view.DocumentList = Backbone.View.extend({
     
@@ -313,8 +312,7 @@
       
     },
     
-    constructor : function(options) {
-      Backbone.View.call(this, options);
+    initialize : function(options) {
       _.bindAll(this, 'refresh', '_removeDocument', '_addDocument');
       dc.app.Documents.bind('refresh', this.refresh);
       dc.app.Documents.bind('remove',  this._removeDocument);

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