不要怂,就是干,撸起袖子干!

Commit b95c33ea by Sascha Depold

transaction inherits from the customeventemitter

1 parent cccfaaa8
Showing with 12 additions and 0 deletions
var Utils = require('./utils')
, util = require('util')
var Transaction = module.exports = function(options) {
this.options = options || {}
this.id = Utils.generateUUID()
}
util.inherits(Transaction, Utils.CustomEventEmitter)
Transaction.prototype.commit = function() {
this.emit('success')
}
Transaction.prototype.rollback = function() {
this.emit('success')
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!