This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var api = { | |
submitUserChanges: function(updated) { | |
console.log("BACKEND DELETE:"); | |
console.log(updated); | |
}, | |
listenForFriendChanges: function(listener) { | |
listener(_dataGenerator.getFriendUpdates()); | |
setInterval(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<navbar><navbar> | |
<scroll-view> | |
<div payments-list="optionalAccountId"></div> | |
</scroll-view> | |
<!-- inside payments list directive html --> | |
<div ng-controller="Payments"> | |
<div ptr-directive on-release="loadMorePayments()" loading="paymentsStates.isloading"></div> | |
<div ng-repeat="payment in payments">...</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn keys->strings | |
"Given a map converts all keys that are keywords from dash-separated to | |
camel-case using key->string." | |
[m] | |
(let [f (fn [[k v]] [(key->string k) v]) | |
walk-fn (fn [x] | |
(if (map? x) | |
(->> (map f x) | |
(into {})) | |
x))] |
NewerOlder