Permalink
Browse files

- centralizing JBST minification as single pass

- now compacts inline code better
- compilation is more efficient
  • Loading branch information...
1 parent 9d8ebc6 commit a79df482490bb19bdaf5a43c1a25fdb92fdd5357 @mckamey committed May 2, 2009
Showing with 2 additions and 4 deletions.
  1. +2 −4 jsonml-jbst.js
View
@@ -4,7 +4,7 @@
JsonML + Browser-Side Templating (JBST) support
Created: 2008-07-28-2337
- Modified: 2009-03-28-1208
+ Modified: 2009-05-02-0943
Copyright (c)2006-2009 Stephen M. McKamey
Distributed under an open-source license: http://jsonml.org/license
@@ -91,12 +91,10 @@ JsonML.BST.init = function(/*JBST*/ jbst) {
self.data = d;
self.index = isFinite(n) ? Number(n) : NaN;
self.count = isFinite(l) ? Number(l) : NaN;
- self.$jbst = j;
// execute t in the context of self as "this"
- return t.call(self);
+ return t.call(self, j);
} finally {
// cleanup contextual members
- delete self.$jbst;
delete self.count;
delete self.index;
delete self.data;

0 comments on commit a79df48

Please sign in to comment.