Skip to content

Instantly share code, notes, and snippets.

@shoaibuddin
Last active December 21, 2015 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shoaibuddin/6243614 to your computer and use it in GitHub Desktop.
Save shoaibuddin/6243614 to your computer and use it in GitHub Desktop.
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