Anton Shestakov <av6@dwimlabs.net>, Thu, 07 Jul 2016 00:12:35 +0800
provision: update tasks to use more YAMLy syntax
js/rivets.js
Permissions: -rw-r--r--
// Generated by CoffeeScript 1.10.0 indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; observe: function(obj, keypath, callback) { return obj.on('change:' + keypath, callback); unobserve: function(obj, keypath, callback) { return obj.off('change:' + keypath, callback); get: function(obj, keypath) { set: function(obj, keypath, value) { return obj.set(keypath, value); rivets.formatters['first-letter'] = function(value) { return (ref = value != null ? typeof value.charAt === "function" ? value.charAt(0) : void 0 : void 0) != null ? ref : ' '; rivets.formatters['dumb-hash'] = function(value) { if (value != null ? value.length : void 0) { for (i = j = 0, ref = value.length; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) { result += value.charCodeAt(i); rivets.formatters['fn'] = function(value, fn) { rivets.formatters['only'] = function() { value = arguments[0], allowed = 2 <= arguments.length ? slice.call(arguments, 1) : []; if (indexOf.call(allowed, value) >= 0) { rivets.formatters['eq'] = function(a, b) { rivets.formatters['has'] = function(a, b) { return (a != null) && indexOf.call(a, b) >= 0; rivets.formatters['format-date'] = function(value, format) { return value.format(format); rivets.formatters['iso-date'] = function(value) { return value.toISOString(); rivets.formatters['from-now'] = function(value) { //# sourceMappingURL=rivets.js.map