Skip to content

Commit

Permalink
Update js/jquery.boxFx.tools.js
Browse files Browse the repository at this point in the history
  • Loading branch information
molokoloco committed May 22, 2012
1 parent c44574e commit 620e61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.boxFx.tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var db = function() { 'console' in window && console.log.call(console, argument
// Lightest TPL // $.getTpl('<div>#title#</div>', {title:'toto'}) // '<div>toto</div>'
$.getTpl = function(tpl, val) {
for (var p in val)
tpl = tpl.replace(new RegExp('#'+p+'#', 'gi'), val[p] || '');
tpl = tpl.replace(new RegExp('{'+p+'}', 'gi'), val[p] || '');
return tpl;
};

Expand Down

0 comments on commit 620e61a

Please sign in to comment.