Skip to content

Instantly share code, notes, and snippets.

@kjelelokk
Created November 29, 2012 10:15
Show Gist options
  • Save kjelelokk/4168009 to your computer and use it in GitHub Desktop.
Save kjelelokk/4168009 to your computer and use it in GitHub Desktop.
Dojo define
define([
'_MyMixin',
'myWidget'
], function (_MyMixin, myWidget)
{
return declare('my.widget.name', [_MyMixin, myWidget], {
myProperty: 'prop',
myFunction: function () {
console.log('hei hei ' + propertyFromMyWidget);
},
myFunctionThatOverridesParentFunction: function (val) {
this.inherited(arguments); // Kaller foreldrens funksjon
// med samme parametere som denne funkjsonen fikk inn
// Gjør noe...
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment