Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add patch for Dust hacks.

  • Loading branch information...
commit 7b48cfc9679e39856264757ad545a45a5daf5a75 1 parent 7130ea1
rektide rektide authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 lib/dust-patch.diff
21 lib/dust-patch.diff
View
@@ -0,0 +1,21 @@
+diff --git a/dist/dust-core-0.3.0.js b/dist/dust-core-0.3.0.js
+index 04a0cd2..8dc188b 100644
+--- a/dist/dust-core-0.3.0.js
++++ b/dist/dust-core-0.3.0.js
+@@ -272,6 +272,7 @@ function Chunk(root, next, taps) {
+ this.flushable = false;
+ this.taps = taps;
+ }
++dust.chunk= Chunk
+
+ Chunk.prototype.write = function(data) {
+ var taps = this.taps;
+@@ -323,7 +324,7 @@ Chunk.prototype.render = function(body, context) {
+ }
+
+ Chunk.prototype.reference = function(elem, context, auto, filters) {
+- if (typeof elem === "function") {
++ if (typeof elem === "function" && elem.name != "observable") {
+ elem = elem(this, context, null, {auto: auto, filters: filters});
+ if (elem instanceof Chunk) {
+ return elem;
Please sign in to comment.
Something went wrong with that request. Please try again.