Skip to content

Instantly share code, notes, and snippets.

@jstrimpel
Created November 11, 2014 19:16
Show Gist options
  • Save jstrimpel/d822955573c33fb1ad5d to your computer and use it in GitHub Desktop.
Save jstrimpel/d822955573c33fb1ad5d to your computer and use it in GitHub Desktop.
deprecated widget def
define(['lazoView'], function (View) {
'use strict';
return View.extend({
widgets: {
Avatar: 'app/widget-defs/avatar'
},
afterRender: function () {
this.avatar = new this.Avatar();
}
});
});
define({
css: ['/app/client/widgets/avatar/avatar.css'],
js: '/app/client/widgets/avatar/index'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment