Permalink
Browse files

added syntax to get object being iterated

  • Loading branch information...
mrolafsson committed Apr 18, 2012
1 parent 27165f3 commit 1e9d65f7b0295b6407115ab3656a1a55d3cc6240
Showing with 48 additions and 40 deletions.
  1. +4 −2 tempo.js
  2. +1 −1 tempo.min.js
  3. +1 −1 tests.html
  4. +42 −36 tests.js
View
@@ -283,8 +283,10 @@ var Tempo = (function (tempo) {
return eval(variable);
}
- if (utils.typeOf(i) === 'array') {
- val = eval('i' + variable);
+ if (variable === '.') {
+ val = eval('i');
+ } else if (utils.typeOf(i) === 'array') {
+ val = eval('i' + variable);
} else {
val = eval('i.' + variable);
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -4,7 +4,7 @@
<title>Tempo Test Suite</title>
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css" type="text/css" media="screen">
<script type="text/javascript" src="http://code.jquery.com/qunit/git/qunit.js"></script>
- <script type="text/javascript" src="tempo.min.js"></script>
+ <script type="text/javascript" src="tempo.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript" src="tests.js"></script>
</head>
Oops, something went wrong.

0 comments on commit 1e9d65f

Please sign in to comment.