Skip to content

Instantly share code, notes, and snippets.

@Seich
Last active December 12, 2015 08:48
Show Gist options
  • Save Seich/4746478 to your computer and use it in GitHub Desktop.
Save Seich/4746478 to your computer and use it in GitHub Desktop.
;(function(namespace, undefined) {
'use strict';
var ControllerName = can.Control({
defaults: {
}
},{
'init': function(element, options) {
var self = this;
// Actual code stuff
}
});
namespace.Controllers = namespace.Controllers || {};
namespace.Controllers.ControllerName = ControllerName;
}(this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment