Skip to content

Instantly share code, notes, and snippets.

@lynaghk
Created March 30, 2012 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lynaghk/79e7469953e231c75b70 to your computer and use it in GitHub Desktop.
Save lynaghk/79e7469953e231c75b70 to your computer and use it in GitHub Desktop.
cljs defrecord with IFn variable scope issues when destructuring.
-cambia.timeline.record.thing.prototype.call = (function (tsym33020,p__33021){
-var vec__33022__33023 = p__33021;
-var x__33024 = cljs.core.nth.call(null,vec__33022__33023,0,null);
-var y__33025 = cljs.core.nth.call(null,vec__33022__33023,1,null);
-
-var tsym33020__33026 = this;
-
-var ___33027 = tsym33020__33026;
-
-console.log(x__33024);
-console.log(y__33025);
-console.log(cambia.timeline.record.a);
+cambia.timeline.record.thing.prototype.call = (function (tsym30185,z){
+var this__30186 = this;
+var tsym30185__30187 = this;
+
+var ___30188 = tsym30185__30187;
+
+console.log(cambia.timeline.record.x);
+console.log(cambia.timeline.record.y);
+console.log(this__30186.a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment