dacf10b9 by Michael Richards

Build 0.5.13.

1 parent 302b5fff
...@@ -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.5.12", 5 "version": "0.5.13",
6 "keywords": ["data binding", "templating"], 6 "keywords": ["data binding", "templating"],
7 "scripts": ["dist/rivets.js"], 7 "scripts": ["dist/rivets.js"],
8 "main": "dist/rivets.js", 8 "main": "dist/rivets.js",
......
1 // Rivets.js 1 // Rivets.js
2 // version: 0.5.12 2 // version: 0.5.13
3 // author: Michael Richards 3 // author: Michael Richards
4 // license: MIT 4 // license: MIT
5 (function() { 5 (function() {
6 var Rivets, 6 var Rivets, jQuery,
7 __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, 7 __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
8 __slice = [].slice, 8 __slice = [].slice,
9 __hasProp = {}.hasOwnProperty, 9 __hasProp = {}.hasOwnProperty,
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
12 12
13 Rivets = {}; 13 Rivets = {};
14 14
15 jQuery = window.jQuery || window.Zepto;
16
15 if (!String.prototype.trim) { 17 if (!String.prototype.trim) {
16 String.prototype.trim = function() { 18 String.prototype.trim = function() {
17 return this.replace(/^\s+|\s+$/g, ''); 19 return this.replace(/^\s+|\s+$/g, '');
...@@ -319,7 +321,7 @@ ...@@ -319,7 +321,7 @@
319 this.build = __bind(this.build, this); 321 this.build = __bind(this.build, this);
320 this.componentRegExp = __bind(this.componentRegExp, this); 322 this.componentRegExp = __bind(this.componentRegExp, this);
321 this.bindingRegExp = __bind(this.bindingRegExp, this); 323 this.bindingRegExp = __bind(this.bindingRegExp, this);
322 if (!(this.els.jquery || this.els instanceof Array)) { 324 if (typeof this.els.length === 'undefined') {
323 this.els = [this.els]; 325 this.els = [this.els];
324 } 326 }
325 _ref = ['config', 'binders', 'formatters']; 327 _ref = ['config', 'binders', 'formatters'];
......
1 { 1 {
2 "name": "rivets", 2 "name": "rivets",
3 "description": "Declarative data binding facility.", 3 "description": "Declarative data binding facility.",
4 "version": "0.5.12", 4 "version": "0.5.13",
5 "author": "Michael Richards", 5 "author": "Michael Richards",
6 "url": "http://rivetsjs.com", 6 "url": "http://rivetsjs.com",
7 "main": "./dist/rivets.js", 7 "main": "./dist/rivets.js",
......
1 # Rivets.js 1 # Rivets.js
2 # ========= 2 # =========
3 3
4 # > version: 0.5.12 4 # > version: 0.5.13
5 # > author: Michael Richards 5 # > author: Michael Richards
6 # > license: MIT 6 # > license: MIT
7 # > 7 # >
......