Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Created February 27, 2010 21:13
Show Gist options
  • Save tim-smart/316953 to your computer and use it in GitHub Desktop.
Save tim-smart/316953 to your computer and use it in GitHub Desktop.
Fornode extends BaseNode: ->
# Contructor
ForNode::compile: (source) ->
source
var ForNode = function() {
// Constructor
};
var _fn = function () {};
_fn.prototype = new BaseNode();
ForNode.prototype = new _fn();
ForNode.prototype.compile = function(source) {
return source;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment