blob: dc25ab87c9bb962228245d9d90309428347d6ed2 [file] [log] [blame]
/*
* weinre is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2010, 2011 IBM Corporation
*/
//-----------------------------------------------------------------------------
class CheckForProblems
//-----------------------------------------------------------------------------
static method check
checkForOldPrototypeVersion()
//-----------------------------------------------------------------------------
function checkForOldPrototypeVersion
var badVersion = false
if (typeof Prototype == "undefined") return
if (!Prototype.Version) return
if (Prototype.Version.match(/^1\.5.*/)) badVersion = true
if (Prototype.Version.match(/^1\.6.*/)) badVersion = true
if (badVersion) {
alert("Sorry, weinre is not support in versions of Prototype earlier than 1.7")
}