Я объявляю базовый «класс» для виджета Dijit Custom.Ошибка DOJO при использовании this.inherited (arguments) в строгом режиме
Когда в 'strict mode'
рутина this.inherited(arguments)
; , я получаю эту ошибку:
Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
Мне нужно сохранить режим «строгого режима».
Любая идея, как ее решить?
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() {
},
});
});
Примечание: удаление 'strict mode'
решить эту проблему, но это не вариант в моем случае, как мне нужно использовать 'strict mode'
.
См http://dojo-toolkit.33424.n3.nabble.com/use-strict-and-this-inherited-td3990942.html – Xodrow