This file contains hidden or 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
require(['dojo/aspect'], function (aspect) { | |
var original = { | |
someMethod: function (arg1, arg2) { | |
console.warn('original.someMethod called:', arg1, arg2); | |
return 'Hello ' + arg1 + ' ' + arg2; | |
} | |
}; | |
// aspect.before | |
aspect.before(original, 'someMethod', function (arg1, arg2) { |
This file contains hidden or 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
var deffered = xhr.get({ | |
url: '/getSomePage' | |
}); | |
deffered.then(function (result) { | |
result.property = 'Something more'; | |
return result; | |
}).then(function (resultWithObjectProperty) { | |
// Gjør noe | |
}, function (err) { |
This file contains hidden or 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
using EPiServer.Shell.ViewComposition; | |
using EPiServer.Shell.Web; | |
using EPiServer.Cms.Shell; | |
using EPiServer.Cms.Shell.UI; | |
namespace testepi7.MyWidgets | |
{ | |
[Component( | |
PlugInAreas = "/episerver/cms/assets", | |
Categories = "cms", |
This file contains hidden or 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
<dojoModules> | |
<add name="alloy" path="Scripts" /> | |
</dojoModules> |
OlderNewer