diamond.js
Advanced tools
Comparing version 0.2.0 to 0.2.1
// Generated by CoffeeScript 1.7.1 | ||
(function() { | ||
var Diamond, Model, Property, Validation, | ||
var Model, Property, Validation, | ||
__hasProp = {}.hasOwnProperty, | ||
@@ -11,7 +11,7 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
Diamond = require('./application'); | ||
Model = (function(_super) { | ||
__extends(Model, _super); | ||
Model["extends"](require('./model/storage')); | ||
Model.properties = {}; | ||
@@ -83,38 +83,2 @@ | ||
Model.all = function(callback) { | ||
return Diamond.getInstance().db.all(this, callback); | ||
}; | ||
Model.count = function(callback) { | ||
return Diamond.getInstance().db.count(this, callback); | ||
}; | ||
Model.find = function(options, callback) { | ||
return Diamond.getInstance().db.find(this, options, callback); | ||
}; | ||
Model.findById = function(id, callback) { | ||
return Diamond.getInstance().db.findById(this, id, callback); | ||
}; | ||
Model.prototype.save = function(callback) { | ||
return Diamond.getInstance().db.save(this, callback); | ||
}; | ||
Model.prototype.update = function(options, callback) { | ||
return Diamond.getInstance().db.update(this, options, this.oroperties, callback); | ||
}; | ||
Model.update = function(options, set, callback) { | ||
return Diamond.getInstance().db.update(this, options, set, callback); | ||
}; | ||
Model.prototype.remove = function(callback) { | ||
return Diamond.getInstance().db.remove(this, this.properties, callback); | ||
}; | ||
Model.remove = function(options, callback) { | ||
return Diamond.getInstance().db.remove(this, options, callback); | ||
}; | ||
return Model; | ||
@@ -121,0 +85,0 @@ |
{ | ||
"name": "diamond.js", | ||
"description": "MVC web framework", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Arthur Xavier", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26660
28
479