Skip to content

Commit

Permalink
Added option to pass numbers to template functions
Browse files Browse the repository at this point in the history
  • Loading branch information
eneko committed Feb 24, 2010
1 parent 4476045 commit 95c77a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Source/mooml.js
Expand Up @@ -113,6 +113,10 @@ Mooml = new (new Class({
el.set('html', el.get('html') + argument);
break;
}
case "number": {
el.appendText(argument.toString());
break;
},
case "object": {
if (index == 0) el.set(argument);
break;
Expand Down
2 changes: 1 addition & 1 deletion package.yml
Expand Up @@ -2,4 +2,4 @@ name: Mooml
author: enekoalonso
category: Native
tags: [template, html, dom, element]
current: 1.0.10
current: 1.0.11

0 comments on commit 95c77a5

Please sign in to comment.