Created
November 29, 2012 10:15
-
-
Save kjelelokk/4168009 to your computer and use it in GitHub Desktop.
Dojo define
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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