I am declaring a base "Class" for a Dijit Custom widget.
When in 'strict mode'
routine this.inherited(arguments)
; is being called, I receive this error:
Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
I need to keep the usage 'strict mode'.
Any idea how to solve it?
define([
'dojo/_base/declare',
'dojo/topic',
'dojo/_base/lang'
], function (
declare,
topic,
lang
) {
'use strict';
var attachTo = 'myPanels';
return declare(null, {
id: null,
title: null,
postCreate: function () {
// ERROR HERE
this.inherited(arguments);
this.placeAt(attachTo);
},
constructor: function () {
},
});
});
Notes: removing 'strict mode'
solve the issue, but is not an option in my case as I need to use 'strict mode'
.