169311ac by Michael Richards

Build 0.4.7.

1 parent 754c0d52
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 "name": "rivets", 2 "name": "rivets",
3 "repo": "mikeric/rivets", 3 "repo": "mikeric/rivets",
4 "description": "Declarative data binding facility.", 4 "description": "Declarative data binding facility.",
5 "version": "0.4.6", 5 "version": "0.4.7",
6 "keywords": ["data binding", "templating"], 6 "keywords": ["data binding", "templating"],
7 "scripts": ["lib/rivets.js"], 7 "scripts": ["lib/rivets.js"],
8 "main": "lib/rivets.js", 8 "main": "lib/rivets.js",
......
1 // rivets.js 1 // rivets.js
2 // version: 0.4.6 2 // version: 0.4.7
3 // author: Michael Richards 3 // author: Michael Richards
4 // license: MIT 4 // license: MIT
5 (function() { 5 (function() {
...@@ -439,8 +439,9 @@ ...@@ -439,8 +439,9 @@
439 return unbindEvent(el, 'change', this.currentListener); 439 return unbindEvent(el, 'change', this.currentListener);
440 }, 440 },
441 routine: function(el, value) { 441 routine: function(el, value) {
442 var _ref;
442 if (el.type === 'radio') { 443 if (el.type === 'radio') {
443 return el.checked = el.value === value; 444 return el.checked = ((_ref = el.value) != null ? _ref.toString() : void 0) === (value != null ? value.toString() : void 0);
444 } else { 445 } else {
445 return el.checked = !!value; 446 return el.checked = !!value;
446 } 447 }
...@@ -455,8 +456,9 @@ ...@@ -455,8 +456,9 @@
455 return unbindEvent(el, 'change', this.currentListener); 456 return unbindEvent(el, 'change', this.currentListener);
456 }, 457 },
457 routine: function(el, value) { 458 routine: function(el, value) {
459 var _ref;
458 if (el.type === 'radio') { 460 if (el.type === 'radio') {
459 return el.checked = el.value !== value; 461 return el.checked = ((_ref = el.value) != null ? _ref.toString() : void 0) !== (value != null ? value.toString() : void 0);
460 } else { 462 } else {
461 return el.checked = !value; 463 return el.checked = !value;
462 } 464 }
...@@ -610,7 +612,8 @@ ...@@ -610,7 +612,8 @@
610 factory(exports); 612 factory(exports);
611 } else if (typeof define === 'function' && define.amd) { 613 } else if (typeof define === 'function' && define.amd) {
612 define(['exports'], function(exports) { 614 define(['exports'], function(exports) {
613 return this.rivets = factory(exports); 615 factory(this.rivets = exports);
616 return exports;
614 }); 617 });
615 } else { 618 } else {
616 factory(this.rivets = {}); 619 factory(this.rivets = {});
......
1 { 1 {
2 "name" : "rivets", 2 "name" : "rivets",
3 "description" : "Declarative data binding facility.", 3 "description" : "Declarative data binding facility.",
4 "version" : "0.4.6", 4 "version" : "0.4.7",
5 "author" : "Michael Richards", 5 "author" : "Michael Richards",
6 "url" : "http://rivetsjs.com", 6 "url" : "http://rivetsjs.com",
7 "main" : "./lib/rivets.js", 7 "main" : "./lib/rivets.js",
......
1 # rivets.js 1 # rivets.js
2 # version : 0.4.6 2 # version : 0.4.7
3 # author : Michael Richards 3 # author : Michael Richards
4 # license : MIT 4 # license : MIT
5 5
......