Permalink
Browse files

decruft some of my temporary workarounds.

  • Loading branch information...
1 parent 33d5b70 commit 0e8a9df80a8ded5cabefaffeceaf41207c575ef2 @maxtaco committed Dec 8, 2011
Showing with 5 additions and 76 deletions.
  1. +0 −7 TODO-tame.md
  2. +5 −35 lib/coffee-script/cake.js
  3. +0 −34 src/cake.coffee
View
@@ -4,10 +4,3 @@ Todos to get Tame Running
* `await` returns a value
* continuations must therefore return a value
* tamed `for`, `while` and others return a value
- * tameRequire:
- tameRequire(inline) -- inlines the whole runtime (default)
- tameRequire(external) -- requires the external library file to 'tame.'
-
-
-
-
@@ -34,39 +34,6 @@
})()
};
- tame = {
- Deferrals: (function() {
-
- function _Class(_arg) {
- this.continuation = _arg;
- this.count = 1;
- }
-
- _Class.prototype._fulfill = function() {
- if (!--this.count) return this.continuation();
- };
-
- _Class.prototype.defer = function(defer_params) {
- var _this = this;
- ++this.count;
- return function() {
- var inner_params, _ref;
- inner_params = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- if (defer_params != null) {
- if ((_ref = defer_params.assign_fn) != null) {
- _ref.apply(null, inner_params);
- }
- }
- return _this._fulfill();
- };
- };
-
- return _Class;
-
- })()
-
- }; ;
-
fs = require('fs');
path = require('path');
@@ -107,9 +74,11 @@
return switches.push([letter, flag, description]);
},
invoke: function(name, cb) { /* TAMED */
- var t;
+ var t,
+ _this = this;
if (!(t = tasks[name])) missingTask(name);
(function(__tame_k) {
+ var _this = this;
if (t.async) {
(function(__tame_k) {
var __tame_deferrals;
@@ -149,7 +118,8 @@
_len = _ref.length;
_i = 0;
_while = function(__tame_k) {
- var _break, _continue;
+ var _break, _continue,
+ _this = this;
_break = __tame_k;
_continue = function() {
++_i;
View
@@ -7,40 +7,6 @@
# current directory's Cakefile.
#
#
-` tame = {
- Deferrals: (function() {
-
- function _Class(_arg) {
- this.continuation = _arg;
- this.count = 1;
- }
-
- _Class.prototype._fulfill = function() {
- if (!--this.count) return this.continuation();
- };
-
- _Class.prototype.defer = function(defer_params) {
- var _this = this;
- ++this.count;
- return function() {
- var inner_params, _ref;
- inner_params = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- if (defer_params != null) {
- if ((_ref = defer_params.assign_fn) != null) {
- _ref.apply(null, inner_params);
- }
- }
- return _this._fulfill();
- };
- };
-
- return _Class;
-
- })()
-
- }; `
-
-
# External dependencies.
fs = require 'fs'

0 comments on commit 0e8a9df

Please sign in to comment.