mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 08:14:21 +09:00
Fix inheritance check on GJS < 1.49.90
This commit is contained in:
2
utils.js
2
utils.js
@@ -34,7 +34,7 @@ var defineClass = function (classDef) {
|
||||
let needsSuper = es6Support && !!parentProto && !isGObject;
|
||||
|
||||
if (!es6Support) {
|
||||
if (parentProto && classDef.Extends.name.indexOf('DashToPanel') < 0) {
|
||||
if (parentProto && (classDef.Extends.name || classDef.Extends.toString()).indexOf('DashToPanel.') < 0) {
|
||||
classDef.callParent = function() {
|
||||
let args = Array.prototype.slice.call(arguments);
|
||||
let func = args.shift();
|
||||
|
||||
Reference in New Issue
Block a user