bc1446d8 by Michael Richards

Build 0.3.7.

1 parent afa5712f
// rivets.js
// version: 0.3.6
// version: 0.3.7
// author: Michael Richards
// license: MIT
(function() {
......@@ -91,7 +91,7 @@
};
Binding.prototype.bind = function() {
var keypath, _i, _len, _ref, _ref1;
var dependency, keypath, model, _i, _len, _ref, _ref1;
if (this.options.bypass) {
this.sync();
} else {
......@@ -103,8 +103,16 @@
if ((_ref = this.options.dependencies) != null ? _ref.length : void 0) {
_ref1 = this.options.dependencies;
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
keypath = _ref1[_i];
Rivets.config.adapter.subscribe(this.model, keypath, this.sync);
dependency = _ref1[_i];
if (/^\./.test(dependency)) {
model = this.model;
keypath = dependency.substr(1);
} else {
dependency = dependency.split('.');
model = this.view.models[dependency.shift()];
keypath = dependency.join('.');
}
Rivets.config.adapter.subscribe(model, keypath, this.sync);
}
}
if (this.isBidirectional()) {
......
{
"name" : "rivets",
"description" : "Declarative data binding facility.",
"version" : "0.3.6",
"version" : "0.3.7",
"author" : "Michael Richards",
"url" : "http://rivetsjs.com",
"main" : "./lib/rivets.js",
......
# rivets.js
# version : 0.3.6
# version : 0.3.7
# author : Michael Richards
# license : MIT
......