b23347ae by Michael Richards

Build 0.4.4.

1 parent 22fbb3cd
......@@ -2,7 +2,7 @@
"name": "rivets",
"repo": "mikeric/rivets",
"description": "Declarative data binding facility.",
"version": "0.4.3",
"version": "0.4.4",
"keywords": ["data binding", "template"],
"scripts": ["lib/rivets.js"],
"main": "lib/rivets.js",
......
// rivets.js
// version: 0.4.3
// version: 0.4.4
// author: Michael Richards
// license: MIT
(function() {
......@@ -135,7 +135,7 @@
};
Binding.prototype.unbind = function() {
var keypath, _i, _len, _ref, _ref1, _ref2, _results;
var dependency, keypath, model, _i, _len, _ref, _ref1, _ref2, _results;
if ((_ref = this.binder.unbind) != null) {
_ref.call(this, this.el);
}
......@@ -146,8 +146,16 @@
_ref2 = this.options.dependencies;
_results = [];
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
keypath = _ref2[_i];
_results.push(Rivets.config.adapter.unsubscribe(this.model, keypath, this.sync));
dependency = _ref2[_i];
if (/^\./.test(dependency)) {
model = this.model;
keypath = dependency.substr(1);
} else {
dependency = dependency.split('.');
model = this.view.models[dependency.shift()];
keypath = dependency.join('.');
}
_results.push(Rivets.config.adapter.unsubscribe(model, keypath, this.sync));
}
return _results;
}
......
{
"name" : "rivets",
"description" : "Declarative data binding facility.",
"version" : "0.4.3",
"version" : "0.4.4",
"author" : "Michael Richards",
"url" : "http://rivetsjs.com",
"main" : "./lib/rivets.js",
......
# rivets.js
# version : 0.4.3
# version : 0.4.4
# author : Michael Richards
# license : MIT
......