riversun / JSFrame.js

An independent lightweight multi-window library for javascript.
MIT License
164 stars 31 forks source link

problem : Uncaught TypeError: M.setFrame is not a function #65

Open woxman opened 2 years ago

woxman commented 2 years ago

image

gowhari commented 1 year ago
Uncaught TypeError: M.setFrame is not a function
    at b.y [as constructor] (jsframe.min.js?7e9b:6:1)
    at new b (jsframe.min.js?7e9b:6:1)
    at C.createFrame (jsframe.min.js?7e9b:6:1)
    at C.create (jsframe.min.js?7e9b:6:1)

I get same error and I found that it's related to Array.prototype

Array.prototype.any_new_method = function() {}

If you add any arbitrary method to Array.prototype, jsframe will fail with this error.

version: jsframe.js-1.6.2