author | Giulio Cesare Solaroli <giulio.cesare@solaroli.it> | 2012-03-17 21:18:52 (UTC) |
---|---|---|
committer | Giulio Cesare Solaroli <giulio.cesare@solaroli.it> | 2012-03-17 21:18:52 (UTC) |
commit | 288b8df03a499a2e68ebaad48e687d1eac9df0ff (patch) (side-by-side diff) | |
tree | 1fcaefffee8366b548465a05a6c4cba0c31e131d /frontend/gamma/js/MochiKit/Iter.js | |
parent | 6f7ead0446aae6dd9f40b183e402b059a33d0517 (diff) | |
parent | 25029b943781850c76fbf43827af0204f35a98bf (diff) | |
download | clipperz-288b8df03a499a2e68ebaad48e687d1eac9df0ff.zip clipperz-288b8df03a499a2e68ebaad48e687d1eac9df0ff.tar.gz clipperz-288b8df03a499a2e68ebaad48e687d1eac9df0ff.tar.bz2 |
Merge pull request #34 from gcsolaroli/master
Fixed some resources
Diffstat (limited to 'frontend/gamma/js/MochiKit/Iter.js') (more/less context) (show whitespace changes)
-rw-r--r-- | frontend/gamma/js/MochiKit/Iter.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/frontend/gamma/js/MochiKit/Iter.js b/frontend/gamma/js/MochiKit/Iter.js index 524b2bc..77623bc 100644 --- a/frontend/gamma/js/MochiKit/Iter.js +++ b/frontend/gamma/js/MochiKit/Iter.js @@ -10,3 +10,3 @@ See <http://mochikit.com/> for documentation, downloads, license, etc. -MochiKit.Base._module('Iter', '1.5', ['Base']); +MochiKit.Base.module(MochiKit, 'Iter', '1.5', ['Base']); @@ -224,2 +224,6 @@ MochiKit.Base.update(MochiKit.Iter, { next: function () { + if (start >= stop) { + throw self.StopIteration; + } + var rval; @@ -229,5 +233,2 @@ MochiKit.Base.update(MochiKit.Iter, { } - if (start >= stop) { - throw self.StopIteration; - } start += step; @@ -282,4 +283,3 @@ MochiKit.Base.update(MochiKit.Iter, { try { - var result = argiter[0].next(); - return result; + return argiter[0].next(); } catch (e) { @@ -289,4 +289,2 @@ MochiKit.Base.update(MochiKit.Iter, { argiter.shift(); - var result = argiter[0].next(); - return result; } @@ -415,3 +413,3 @@ MochiKit.Base.update(MochiKit.Iter, { iterable = self.iter(iterable); - var rval = []; + rval = []; var a_val; |