Last active
December 21, 2015 15:48
-
-
Save mikekunze/6328790 to your computer and use it in GitHub Desktop.
This is the compiled version of the httpd-container-skel.coffee file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var Controller, Events, SuperClass, Web, moduleKeywords, | |
__indexOf = [].indexOf || function(item) { | |
for (var i = 0, l = this.length; i < l; i++) { | |
if (i in this && this[i] === item) | |
return i; | |
} | |
return -1; | |
}, | |
__hasProp = {}.hasOwnProperty, | |
__extends = function(child, parent) { | |
for (var key in parent) { | |
if (__hasProp.call(parent, key)) | |
child[key] = parent[key]; | |
} | |
function ctor() { | |
this.constructor = child; | |
} | |
ctor.prototype = parent.prototype; | |
child.prototype = new ctor(); | |
child.__super__ = parent.prototype; | |
return child; | |
}; | |
moduleKeywords = ['included', 'extended']; | |
SuperClass = (function() { | |
function SuperClass() {} | |
SuperClass.include = function(obj) { | |
var included, key, value, _ref; | |
if (!obj) { | |
throw 'include(obj) requires obj'; | |
} | |
_ref = obj.prototype; | |
for (key in _ref) { | |
value = _ref[key]; | |
if (__indexOf.call(moduleKeywords, key) < 0) { | |
this.prototype[key] = value; | |
} | |
} | |
included = obj.included; | |
if (included) { | |
included.apply(this); | |
} | |
return this; | |
}; | |
return SuperClass; | |
})(); | |
Controller = (function() { | |
function Controller() { | |
this.hasController = true; | |
} | |
return Controller; | |
})(); | |
Events = (function() { | |
function Events() { | |
this.hasEvents = true; | |
} | |
Events.prototype.getEvents = function() { | |
return []; | |
}; | |
return Events; | |
})(); | |
Web = (function(_super) { | |
__extends(Web, _super); | |
Web.include(Controller); | |
Web.include(Events); | |
function Web() { | |
Controller.call(this); | |
Events.call(this); | |
} | |
return Web; | |
})(SuperClass); | |
module.exports = Web; | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment