Permalink
Browse files

Changed the transaction manager to use the prototype style.

  • Loading branch information...
matthewp committed Apr 21, 2012
1 parent b884922 commit 8883546eb1616a12cc628ceac91ea3b1ebc19bcf
Showing with 8 additions and 8 deletions.
  1. +4 −4 build/gazel.js
  2. +1 −1 build/gazel.min.js
  3. +3 −3 src/trans.js
View
@@ -48,7 +48,7 @@ function createUuid(
return b
}
function Dict() {
- this.items = {};
+ this.items = {};
}
Dict.prototype = {
@@ -104,14 +104,14 @@ function Trans() {
Trans.prototype = Dict.prototype;
Trans.prototype.constructor = Trans;
-Trans.prototype.add: function() {
+Trans.prototype.add = function() {
var uuid = createUuid();
this.set(uuid, undefined);
return uuid;
}
-Trans.prototype.abortAll: function() {
+Trans.prototype.abortAll = function() {
var self = this,
keys = self.keys();
@@ -124,7 +124,7 @@ Trans.prototype.abortAll: function() {
});
};
-Trans.prototype.pull: function(db, uuid, perm) {
+Trans.prototype.pull = function(db, uuid, perm) {
var tx = this.get(uuid);
if(!tx) {
tx = db.transaction([gazel.osName], perm);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -5,14 +5,14 @@ function Trans() {
Trans.prototype = Dict.prototype;
Trans.prototype.constructor = Trans;
-Trans.prototype.add: function() {
+Trans.prototype.add = function() {
var uuid = createUuid();
this.set(uuid, undefined);
return uuid;
}
-Trans.prototype.abortAll: function() {
+Trans.prototype.abortAll = function() {
var self = this,
keys = self.keys();
@@ -25,7 +25,7 @@ Trans.prototype.abortAll: function() {
});
};
-Trans.prototype.pull: function(db, uuid, perm) {
+Trans.prototype.pull = function(db, uuid, perm) {
var tx = this.get(uuid);
if(!tx) {
tx = db.transaction([gazel.osName], perm);

0 comments on commit 8883546

Please sign in to comment.