169311ac by Michael Richards

Build 0.4.7.

1 parent 754c0d52
......@@ -2,7 +2,7 @@
"name": "rivets",
"repo": "mikeric/rivets",
"description": "Declarative data binding facility.",
"version": "0.4.6",
"version": "0.4.7",
"keywords": ["data binding", "templating"],
"scripts": ["lib/rivets.js"],
"main": "lib/rivets.js",
......
// rivets.js
// version: 0.4.6
// version: 0.4.7
// author: Michael Richards
// license: MIT
(function() {
......@@ -439,8 +439,9 @@
return unbindEvent(el, 'change', this.currentListener);
},
routine: function(el, value) {
var _ref;
if (el.type === 'radio') {
return el.checked = el.value === value;
return el.checked = ((_ref = el.value) != null ? _ref.toString() : void 0) === (value != null ? value.toString() : void 0);
} else {
return el.checked = !!value;
}
......@@ -455,8 +456,9 @@
return unbindEvent(el, 'change', this.currentListener);
},
routine: function(el, value) {
var _ref;
if (el.type === 'radio') {
return el.checked = el.value !== value;
return el.checked = ((_ref = el.value) != null ? _ref.toString() : void 0) !== (value != null ? value.toString() : void 0);
} else {
return el.checked = !value;
}
......@@ -610,7 +612,8 @@
factory(exports);
} else if (typeof define === 'function' && define.amd) {
define(['exports'], function(exports) {
return this.rivets = factory(exports);
factory(this.rivets = exports);
return exports;
});
} else {
factory(this.rivets = {});
......
{
"name" : "rivets",
"description" : "Declarative data binding facility.",
"version" : "0.4.6",
"version" : "0.4.7",
"author" : "Michael Richards",
"url" : "http://rivetsjs.com",
"main" : "./lib/rivets.js",
......
# rivets.js
# version : 0.4.6
# version : 0.4.7
# author : Michael Richards
# license : MIT
......