backbone-orm
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -26,2 +26,3 @@ // Generated by CoffeeScript 1.6.3 | ||
} | ||
this.forEach = __bind(this.forEach, this); | ||
this.reset = __bind(this.reset, this); | ||
@@ -87,2 +88,6 @@ this.destroy = __bind(this.destroy, this); | ||
MemoryStore.prototype.forEach = function(callback) { | ||
return this.cache.forEach(callback); | ||
}; | ||
return MemoryStore; | ||
@@ -89,0 +94,0 @@ |
@@ -288,6 +288,7 @@ // Generated by CoffeeScript 1.6.3 | ||
relation_key = related_fields[_i]; | ||
relation = this.model_type.relation(relation_key); | ||
related_model_types.push(relation.reverse_model_type); | ||
if (relation.join_table) { | ||
related_model_types.push(relation.join_table); | ||
if (relation = this.model_type.relation(relation_key)) { | ||
related_model_types.push(relation.reverse_model_type); | ||
if (relation.join_table) { | ||
related_model_types.push(relation.join_table); | ||
} | ||
} | ||
@@ -294,0 +295,0 @@ } |
@@ -79,2 +79,12 @@ // Generated by CoffeeScript 1.6.3 | ||
Utils.inspect = function(obj) { | ||
var err; | ||
try { | ||
return JSON.stringify(obj); | ||
} catch (_error) { | ||
err = _error; | ||
return "inspect: " + err; | ||
} | ||
}; | ||
Utils.bbCallback = function(callback) { | ||
@@ -81,0 +91,0 @@ return { |
{ | ||
"name": "backbone-orm", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A polystore ORM for Node.js and the browser", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -25,3 +25,3 @@ [![Build Status](https://secure.travis-ci.org/vidigami/backbone-orm.png)](http://travis-ci.org/vidigami/backbone-orm) | ||
``` | ||
```coffeescript | ||
# Find the Project with id = 123 | ||
@@ -82,3 +82,3 @@ Project.findOne {id: 123}, (err, project) -> | ||
``` | ||
```javascript | ||
// Find the Project with id = 123 | ||
@@ -146,10 +146,16 @@ Project.findOne({id: 123}, function(err, project) {}); | ||
$ npm run build | ||
``` | ||
$ npm run | ||
``` | ||
To build the library for the browser: | ||
$ grunt | ||
``` | ||
$ grunt | ||
``` | ||
Please run tests before submitting a pull request. | ||
$ npm test | ||
``` | ||
$ npm test | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2010678
23153
159
2