[Pkg-javascript-commits] [backbone] 13/101: code style tweak

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


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

js pushed a commit to tag 0.1.0
in repository backbone.

commit b9b8a902e65794078bea308d898b13e2c6276761
Author: Andrew Schaaf <andrew at andrewschaaf.com>
Date:   Sat Oct 2 17:16:05 2010 -0400

    code style tweak
---
 backbone.js | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/backbone.js b/backbone.js
index 72c7be5..ef17309 100644
--- a/backbone.js
+++ b/backbone.js
@@ -236,6 +236,20 @@
       return value;
     },
 
+    // Return a copy of the model's attributes.
+    attributes : function() {
+      return _.clone(this._attributes);
+    },
+
+    // Bind all methods in the list to the model.
+    bindAll : function() {
+      _.bindAll.apply(_, [this].concat(arguments));
+    },
+
+    toString : function() {
+      return 'Model ' + this.id;
+    },
+
     // Set a hash of model attributes, and sync the model to the server.
     save : function(attrs, options) {
       if (!this.resource) throw new Error(this.toString() + " cannot be saved without a resource.");
@@ -255,20 +269,6 @@
       });
     },
 
-    // Return a copy of the model's attributes.
-    attributes : function() {
-      return _.clone(this._attributes);
-    },
-
-    // Bind all methods in the list to the model.
-    bindAll : function() {
-      _.bindAll.apply(_, [this].concat(arguments));
-    },
-
-    toString : function() {
-      return 'Model ' + this.id;
-    },
-
     // Destroy this model on the server.
     destroy : function(options) {
       if (this.collection) this.collection.remove(this);

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