Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CanJS Skeleton
/**
* This CanJS Skeleton module file.
* This file is uses requireJS, JQuery.
*
* @author Shoaib Ud-Din
* @version 20140513
* @requires requireJS, JQuery
*/
define(['jquery','can','maskedinput','domReady!'], function($, can){
//CanControl
var widgetName = can.Control.extend({
defaults: {
'variable' : value,
'variable' : null
}
},{
//Init
init: function() {
},
//Function
'selector click': function() {
},
}
);
return widgetName;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.