проверить подключена ли библиотека Prototype

21 views
Skip to first unread message

Александр Павленко

unread,
Jun 1, 2013, 12:34:05 PM6/1/13
to prototype-s...@googlegroups.com
как програмно проверить или подключена  Prototype

Александр Павленко

unread,
Jun 2, 2013, 7:56:04 AM6/2/13
to prototype-s...@googlegroups.com
придумал

function assay_prototype()
{if(window.Prototype && Prototype.Version) console.log(Prototype.Version)
else console.log('no')
}
window.onload=function()
{assay_prototype()
}
Reply all
Reply to author
Forward
0 new messages