rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
url = 'addTimerEvent?timer=repeating&ref=' + channel + '&shour=' + shour + '&smin=' + smin + '&ehour=' + ehour + '&emin=' + emin + '&mo=' + mo + '&tu=' + tu + '&we=' + we + '&th=' + th + '&fr=' + fr + '&sa=' + sa + '&su=' + su + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action; | url = 'addTimerEvent?timer=repeating&ref=' + channel + '&shour=' + shour + '&smin=' + smin + '&smonth=' + smonth + '&syear=' + syear + '&ehour=' + ehour + '&emin=' + emin + '&emonth=' + emonth + '&eyear=' + eyear + '&mo=' + mo + '&tu=' + tu + '&we=' + we + '&th=' + th + '&fr=' + fr + '&sa=' + sa + '&su=' + su + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action; | function addTimerEvent(){ var url = ""; var currentTimer = document.channelselector.type.selectedIndex; var timer = document.channelselector.type.options[currentTimer].value; var currentChannel = document.channelselector.channel.selectedIndex; var channel = document.channelselector.channel.options[currentChannel].value; if (timer == "regular") { var currentSday = document.channelselector.sday.selectedIndex; var sday = document.channelselector.sday.options[currentSday].text; var currentSmonth = document.channelselector.smonth.selectedIndex; var smonth = document.channelselector.smonth.options[currentSmonth].text; var currentSyear = document.channelselector.syear.selectedIndex; var syear = document.channelselector.syear.options[currentSyear].text; } var currentShour = document.channelselector.shour.selectedIndex; var shour = document.channelselector.shour.options[currentShour].text; var currentSmin = document.channelselector.smin.selectedIndex; var smin = document.channelselector.smin.options[currentSmin].text; if (timer == "regular") { var currentEday = document.channelselector.eday.selectedIndex; var eday = document.channelselector.eday.options[currentEday].text; var currentEmonth = document.channelselector.emonth.selectedIndex; var emonth = document.channelselector.emonth.options[currentEmonth].text; var currentEyear = document.channelselector.eyear.selectedIndex; var eyear = document.channelselector.eyear.options[currentEyear].text; } var currentEhour = document.channelselector.ehour.selectedIndex; var ehour = document.channelselector.ehour.options[currentEhour].text; var currentEmin = document.channelselector.emin.selectedIndex; var emin = document.channelselector.emin.options[currentEmin].text; var descr = document.channelselector.descr.value; var currentAfterEvent = document.channelselector.after_event.selectedIndex; var after_event = document.channelselector.after_event.options[currentAfterEvent].value; var currentAction = document.channelselector.action.selectedIndex; var action = document.channelselector.action.options[currentAction].value; if (timer == "repeating") { var mo = "off"; var tu = "off"; var we = "off"; var th = "off"; var fr = "off"; var sa = "off"; var su = "off"; if (document.channelselector.mo.checked) mo = "on"; if (document.channelselector.tu.checked) tu = "on"; if (document.channelselector.we.checked) we = "on"; if (document.channelselector.th.checked) th = "on"; if (document.channelselector.fr.checked) fr = "on"; if (document.channelselector.sa.checked) sa = "on"; if (document.channelselector.su.checked) su = "on"; url = 'addTimerEvent?timer=repeating&ref=' + channel + '&shour=' + shour + '&smin=' + smin + '&ehour=' + ehour + '&emin=' + emin + '&mo=' + mo + '&tu=' + tu + '&we=' + we + '&th=' + th + '&fr=' + fr + '&sa=' + sa + '&su=' + su + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action; } else url = 'addTimerEvent?timer=regular&ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&syear=' + syear + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&eyear=' + eyear + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action; NewWindow(url, 'add', '200', '200', 'no', '5000');} |
url = 'addTimerEvent?timer=regular&ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action; | url = 'addTimerEvent?timer=regular&ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&syear=' + syear + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&eyear=' + eyear + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action; | function addTimerEvent(){ var url = ""; var currentTimer = document.channelselector.type.selectedIndex; var timer = document.channelselector.type.options[currentTimer].value; var currentChannel = document.channelselector.channel.selectedIndex; var channel = document.channelselector.channel.options[currentChannel].value; if (timer == "regular") { var currentSday = document.channelselector.sday.selectedIndex; var sday = document.channelselector.sday.options[currentSday].text; var currentSmonth = document.channelselector.smonth.selectedIndex; var smonth = document.channelselector.smonth.options[currentSmonth].text; } var currentShour = document.channelselector.shour.selectedIndex; var shour = document.channelselector.shour.options[currentShour].text; var currentSmin = document.channelselector.smin.selectedIndex; var smin = document.channelselector.smin.options[currentSmin].text; if (timer == "regular") { var currentEday = document.channelselector.eday.selectedIndex; var eday = document.channelselector.eday.options[currentEday].text; var currentEmonth = document.channelselector.emonth.selectedIndex; var emonth = document.channelselector.emonth.options[currentEmonth].text; } var currentEhour = document.channelselector.ehour.selectedIndex; var ehour = document.channelselector.ehour.options[currentEhour].text; var currentEmin = document.channelselector.emin.selectedIndex; var emin = document.channelselector.emin.options[currentEmin].text; var descr = document.channelselector.descr.value; var currentAfterEvent = document.channelselector.after_event.selectedIndex; var after_event = document.channelselector.after_event.options[currentAfterEvent].value; var currentAction = document.channelselector.action.selectedIndex; var action = document.channelselector.action.options[currentAction].value; if (timer == "repeating") { var mo = "off"; var tu = "off"; var we = "off"; var th = "off"; var fr = "off"; var sa = "off"; var su = "off"; if (document.channelselector.mo.checked) mo = "on"; if (document.channelselector.tu.checked) tu = "on"; if (document.channelselector.we.checked) we = "on"; if (document.channelselector.th.checked) th = "on"; if (document.channelselector.fr.checked) fr = "on"; if (document.channelselector.sa.checked) sa = "on"; if (document.channelselector.su.checked) su = "on"; url = 'addTimerEvent?timer=repeating&ref=' + channel + '&shour=' + shour + '&smin=' + smin + '&ehour=' + ehour + '&emin=' + emin + '&mo=' + mo + '&tu=' + tu + '&we=' + we + '&th=' + th + '&fr=' + fr + '&sa=' + sa + '&su=' + su + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action; } else url = 'addTimerEvent?timer=regular&ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action; NewWindow(url, 'add', '200', '200', 'no', '5000');} |
var url = '/addTimerEvent2?ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr; | var url = '/addTimerEvent2?ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr + '&after_event=' + after_event; | function addTimerEvent(){ var currentChannel = document.channelselector.channel.selectedIndex; var channel = document.channelselector.channel.options[currentChannel].value; var currentSday = document.channelselector.sday.selectedIndex; var sday = document.channelselector.sday.options[currentSday].text; var currentSmonth = document.channelselector.smonth.selectedIndex; var smonth = document.channelselector.smonth.options[currentSmonth].text; var currentShour = document.channelselector.shour.selectedIndex; var shour = document.channelselector.shour.options[currentShour].text; var currentSmin = document.channelselector.smin.selectedIndex; var smin = document.channelselector.smin.options[currentSmin].text; var currentEday = document.channelselector.eday.selectedIndex; var eday = document.channelselector.eday.options[currentEday].text; var currentEmonth = document.channelselector.emonth.selectedIndex; var emonth = document.channelselector.emonth.options[currentEmonth].text; var currentEhour = document.channelselector.ehour.selectedIndex; var ehour = document.channelselector.ehour.options[currentEhour].text; var currentEmin = document.channelselector.emin.selectedIndex; var emin = document.channelselector.emin.options[currentEmin].text; var descr = document.channelselector.descr.value; var url = '/addTimerEvent2?ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr; NewWindow(url, 'add', '200', '200', 'no', '5000');} |
cocoon.sendPage("redirect.html", { "url" : redirectUri }); | cocoon.redirectTo(redirectUri); | function addUser(ldap) { resolve(); try { var redirectUri = getRequestUri(); var userId = ""; var ldapId = null; if (ldap) { ldapId = ""; } var email = ""; var fullName = ""; var description = ""; var messages = new Packages.java.util.ArrayList(); var password = ""; var confirmPassword = ""; var userManager = getAccreditableManager().getUserManager(); var ready = false; while (!ready) { cocoon.sendPageAndWait("users/profile.xml", { "page-title" : "Add User", "user-id" : userId, "fullname" : fullName, "email" : email, "description" : description, "messages" : messages, "ldap-id" : ldapId, "password" : password, "confirm-password" : confirmPassword, "new-user" : true, "ldap" : ldap }); if (cocoon.request.get("submit")) { userId = cocoon.request.get("userid"); email = cocoon.request.get("email"); fullName = cocoon.request.get("fullname"); description = cocoon.request.get("description"); ldapId = cocoon.request.get("ldapid"); password = cocoon.request.get("new-password"); confirmPassword = cocoon.request.get("confirm-password"); var configDir = userManager.getConfigurationDirectory(); messages = validate(userManager, ldap, userId, email, password, confirmPassword, ldapId, configDir); if (messages.isEmpty()) { var user; if (ldap) { user = new Packages.org.apache.lenya.ac.ldap.LDAPUser(configDir, userId, email, ldapId); } else { user = new Packages.org.apache.lenya.ac.file.FileUser(configDir, userId, fullName, email, ""); user.setName(fullName); user.setPassword(password); } user.setDescription(description); user.save(); userManager.add(user); ready = true; } } else { ready = true; } } cocoon.sendPage("redirect.html", { "url" : redirectUri }); } finally { release(); }} |
if (node.nodeType == 3) { | if (node.nodeName.indexOf("/") > -1 || node.nodeName == "" || node.nodeName == "#document" || node.nodeName == "#document-fragment" || node.nodeName == "#cdata-section" || node.nodeName == "#xml-declaration" || node.nodeName == "#whitespace" || node.nodeName == "#significat-whitespace" ) { return; } if (node.nodeName == "#comment") { try { domParentNode.appendChild(dom.createComment(node.nodeValue)); } catch (ex) { } } else if (node.nodeType == 3) { | function addXPathSupport(document) {/** END SELENIUM:PATCH */var isIe = /MSIE [56789]/.test(navigator.userAgent) && (navigator.platform == "Win32");// Mozilla has support by default, we don't have an implementation for the restif (isIe){ // release number document.DomL3XPathRelease = "0.0.3.0"; // XPathException // An Error object will be thrown, this is just a handler to instantiate that object var XPathException = new _XPathExceptionHandler(); function _XPathExceptionHandler() { this.INVALID_EXPRESSION_ERR = 51; this.TYPE_ERR = 52; this.NOT_IMPLEMENTED_ERR = -1; this.RUNTIME_ERR = -2; this.ThrowNotImplemented = function(message) { ThrowError(this.NOT_IMPLEMENTED_ERR, "This functionality is not implemented.", message); } this.ThrowInvalidExpression = function(message) { ThrowError(this.INVALID_EXPRESSION_ERR, "Invalid expression", message); } this.ThrowType = function(message) { ThrowError(this.TYPE_ERR, "Type error", message); } this.Throw = function(message) { ThrowError(this.RUNTIME_ERR, "Run-time error", message); } function ThrowError(code, description, message) { var error = new Error(code, "DOM-L3-XPath " + document.DomL3XPathRelease + ": " + description + (message ? ", \"" + message + "\"": "")); error.code = code; error.name = "XPathException"; throw error; } } // DOMException // An Error object will be thrown, this is just a handler to instantiate that object var DOMException = new _DOMExceptionHandler(); function _DOMExceptionHandler() { this.ThrowInvalidState = function(message) { ThrowError(13, "The state of the object is no longer valid", message); } function ThrowError(code, description, message) { var error = new Error(code, "DOM : " + description + (message ? ", \"" + message + "\"": "")); error.code = code; error.name = "DOMException"; throw error; } } // XPathEvaluator // implemented as document object methods // XPathExpression createExpression(String expression, XPathNSResolver resolver) document.createExpression = function ( expression, // String resolver // XPathNSResolver ) { // returns XPathExpression object return new XPathExpression(expression, resolver); } // XPathNSResolver createNSResolver(nodeResolver) document.createNSResolver = function ( nodeResolver // Node ) { // returns XPathNSResolver return new XPathNSResolver(nodeResolver); } // XPathResult evaluate(String expresison, Node contextNode, XPathNSResolver resolver, Number type, XPathResult result) document.evaluate = function ( expression, // String contextNode, // Node resolver, // XPathNSResolver type, // Number result // XPathResult ) // can raise XPathException, DOMException { // return XPathResult return document.createExpression(expression, resolver).evaluate(contextNode, type, result); } // XPathExpression function XPathExpression ( expression, // String resolver // XPathNSResolver ) { this.expressionString = expression; this.resolver = resolver; // XPathResult evaluate(Node contextNode, Number type, XPathResult result) this.evaluate = function ( contextNode, // Node type, // Number result // XPathResult ) // raises XPathException, DOMException { // return XPathResult return (result && result.constructor == XPathResult ? result.initialize(this, contextNode, resolver, type) : new XPathResult(this, contextNode, resolver, type)); } this.toString = function() { return "[XPathExpression]"; } } // XPathNSResolver function XPathNSResolver(node) { this.node = node; // String lookupNamespaceURI(String prefix) this.lookupNamespaceURI = function ( prefix // String ) { XPathException.ThrowNotImplemented(); // return String return null; } this.toString = function() { return "[XPathNSResolver]"; } } // XPathResult XPathResult.ANY_TYPE = 0; XPathResult.NUMBER_TYPE = 1; XPathResult.STRING_TYPE = 2; XPathResult.BOOLEAN_TYPE = 3; XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4; XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5; XPathResult.UNORDERED_SNAPSHOT_TYPE = 6; XPathResult.ORDERED_SNAPSHOT_TYPE = 7; XPathResult.ANY_UNORDERED_NODE_TYPE = 8; XPathResult.FIRST_ORDERED_NODE_TYPE = 9; function XPathResult ( expression, // XPathExpression contextNode, // Node resolver, // XPathNSResolver type // Number ) { this.initialize = function(expression, contextNode, resolver, type) { this._domResult = null; this._expression = expression; this._contextNode = contextNode; this._resolver = resolver; if (type) { this.resultType = type; this._isIterator = (type == XPathResult.UNORDERED_NODE_ITERATOR_TYPE || type == XPathResult.ORDERED_NODE_ITERATOR_TYPE || type == XPathResult.ANY_TYPE); this._isSnapshot = (type == XPathResult.UNORDERED_SNAPSHOT_TYPE || type == XPathResult.ORDERED_SNAPSHOT_TYPE); this._isNodeSet = type > XPathResult.BOOLEAN_TYPE; } else { this.resultType = XPathResult.ANY_TYPE; this._isIterator = true; this._isSnapshot = false; this._isNodeSet = true; } return this; } this.initialize(expression, contextNode, resolver, type); this.getInvalidIteratorState = function() { return documentChangeDetected() || !this._isIterator; } this.getSnapshotLength = function() // raises XPathException { if (!this._isSnapshot) { XPathException.ThrowType("Snapshot is not an expected result type"); } activateResult(this); // return Number return this._domResult.length; } // Node iterateNext() this.iterateNext = function() // raises XPathException, DOMException { if (!this._isIterator) { XPathException.ThrowType("Iterator is not an expected result type"); } activateResult(this); if (documentChangeDetected()) { DOMException.ThrowInvalidState("iterateNext"); } // return Node return getNextNode(this); } // Node snapshotItem(Number index) this.snapshotItem = function(index) // raises XPathException { if (!this._isSnapshot) { XPathException.ThrowType("Snapshot is not an expected result type"); } // return Node return getItemNode(this, index); } this.toString = function() { return "[XPathResult]"; } // returns string value of the result, if result type is STRING_TYPE // otherwise throws an XPathException this.getStringValue = function() { if (this.resultType != XPathResult.STRING_TYPE) { XPathException.ThrowType("The expression can not be converted to return String"); } return getNodeText(this); } // returns number value of the result, if the result is NUMBER_TYPE // otherwise throws an XPathException this.getNumberValue = function() { if (this.resultType != XPathResult.NUMBER_TYPE) { XPathException.ThrowType("The expression can not be converted to return Number"); } var number = parseInt(getNodeText(this)); if (isNaN(number)) { XPathException.ThrowType("The result can not be converted to Number"); } return number; } // returns boolean value of the result, if the result is BOOLEAN_TYPE // otherwise throws an XPathException this.getBooleanValue = function() { if (this.resultType != XPathResult.BOOLEAN_TYPE) { XPathException.ThrowType("The expression can not be converted to return Boolean"); } var text = getNodeText(this); bool = (text ? text.toLowerCase() : null); if (bool == "false" || bool == "true") { return bool; } XPathException.ThrowType("The result can not be converted to Boolean"); } // returns single node, if the result is ANY_UNORDERED_NODE_TYPE or FIRST_ORDERED_NODE_TYPE // otherwise throws an XPathException this.getSingleNodeValue = function() { if (this.resultType != XPathResult.ANY_UNORDERED_NODE_TYPE && this.resultType != XPathResult.FIRST_ORDERED_NODE_TYPE) { XPathException.ThrowType("The expression can not be converted to return single Node value"); } return getSingleNode(this); } function documentChangeDetected() { return document._XPathMsxmlDocumentHelper.documentChangeDetected(); } function getNodeText(result) { activateResult(result); return result._textResult;// return ((node = getSingleNode(result)) ? (node.nodeType == 1 ? node.innerText : node.nodeValue) : null); } function findNode(result, current) { switch(current.nodeType) { case 1: // NODE_ELEMENT var id = current.attributes.getNamedItem("id"); if (id) { return document.getElementById(id.value); } XPathException.Throw("unable to locate element in XML tree"); case 2: // NODE_ATTRIBUTE var id = current.selectSingleNode("..").attributes.getNamedItem("id"); if (id) { var node = document.getElementById(id.text); if (node) { return node.attributes.getNamedItem(current.nodeName); } } XPathException.Throw("unable to locate attribute in XML tree"); case 3: // NODE_TEXT var id = current.selectSingleNode("..").attributes.getNamedItem("id"); if (id) { var node = document.getElementById(id.value); if (node) { for(child in node.childNodes) { if (child.nodeType == 3 && child.nodeValue == current.nodeValue) { return child; } } } } XPathException.Throw("unable to locate text in XML tree"); } XPathException.Throw("unknown node type"); } function activateResult(result) { if (!result._domResult) { try { var expression = result._expression.expressionString; // adjust expression if contextNode is not a document if (result._contextNode != document && expression.indexOf("//") != 0) { expression = "//*[@id = '" + result._contextNode.id + "']" + (expression.indexOf("/") == 0 ? "" : "/") + expression; } if (result._isNodeSet) { result._domResult = document._XPathMsxmlDocumentHelper.getDom().selectNodes(expression); } else { result._domResult = true; result._textResult = document._XPathMsxmlDocumentHelper.getTextResult(expression); } } catch(error) { alert(error.description); XPathException.ThrowInvalidExpression(error.description); } } } function getSingleNode(result) { var node = getItemNode(result, 0); result._domResult = null; return node; } function getItemNode(result, index) { activateResult(result); var current = result._domResult.item(index); return (current ? findNode(result, current) : null); } function getNextNode(result) { var current = result._domResult.nextNode; if (current) { return findNode(result, current); } result._domResult = null; return null; } } document.reloadDom = function() { document._XPathMsxmlDocumentHelper.reset(); } document._XPathMsxmlDocumentHelper = new _XPathMsxmlDocumentHelper(); function _XPathMsxmlDocumentHelper() { this.getDom = function() { activateDom(this); return this.dom; } this.getXml = function() { activateDom(this); return this.dom.xml; } this.getTextResult = function(expression) { expression = expression.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\""); var xslText = "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">" + "<xsl:output method=\"text\"/><xsl:template match=\"*\"><xsl:value-of select=\"" + expression + "\"/>" + "</xsl:template></xsl:stylesheet>"; var xsl = new ActiveXObject("Msxml2.DOMDocument"); xsl.loadXML(xslText); try { var result = this.getDom().transformNode(xsl); } catch(error) { alert("Error: " + error.description); } return result; } this.reset = function() { this.dom = null; } function onPropertyChangeEventHandler() { document._propertyChangeDetected = true; } this.documentChangeDetected = function() { return (document.ignoreDocumentChanges ? false : this._currentElementCount != document.all.length || document._propertyChangeDetected); } function activateDom(helper) { if (!helper.dom) { var dom = new ActiveXObject("Msxml2.DOMDocument");/** SELENIUM:PATCH TO ALLOW PROVIDE FULL XPATH SUPPORT */ dom.setProperty("SelectionLanguage", "XPath");/** END SELENIUM:PATCH */ dom.async = false; dom.resolveExternals = false; loadDocument(dom, helper); helper.dom = dom; helper._currentElementCount = document.all.length; document._propertyChangeDetected = false; } else { if (helper.documentChangeDetected()) { var dom = helper.dom; dom.load(""); loadDocument(dom, helper); helper._currentElementCount = document.all.length; document._propertyChangeDetected = false; } } } function loadDocument(dom, helper) { return loadNode(dom, dom, document.body, helper); } function loadNode(dom, domParentNode, node, helper) { if (node.nodeType == 3) { domParentNode.appendChild(dom.createTextNode(node.nodeValue)); } else { var domNode = dom.createElement(node.nodeName.toLowerCase()); if (!node.id) { node.id = node.uniqueID; } domParentNode.appendChild(domNode); loadAttributes(dom, domNode, node); var length = node.childNodes.length; for(var i = 0; i < length; i ++ ) { loadNode(dom, domNode, node.childNodes[i], helper); } node.attachEvent("onpropertychange", onPropertyChangeEventHandler); } } function loadAttributes(dom, domParentNode, node) { for (var i = 0; i < node.attributes.length; i ++ ) { var attribute = node.attributes[i]; var attributeValue = attribute.nodeValue; if (attributeValue && attribute.specified) { var domAttribute = dom.createAttribute(attribute.nodeName); domAttribute.value = attributeValue; domParentNode.setAttributeNode(domAttribute); } } } }}else{ document.reloadDom = function() {} XPathResult.prototype.getStringValue = function() { return this.stringValue; } XPathResult.prototype.getNumberValue = function() { return this.numberValue; } XPathResult.prototype.getBooleanValue = function() { return this.booleanValue; } XPathResult.prototype.getSingleNodeValue = function() { return this.singleNodeValue; } XPathResult.prototype.getInvalidIteratorState = function() { return this.invalidIteratorState; } XPathResult.prototype.getSnapshotLength = function() { return this.snapshotLength; } XPathResult.prototype.getResultType = function() { return this.resultType; }}/** SELENIUM:PATCH TO ALLOW USE WITH CONTAINED DOCUMENTS */} |
tinyMCE.importPluginLanguagePack('insertdatetime','en,tr,cs,el,fr_ca,it,ko,sv,zh_cn,fa,fr,de,pl,pt_br,nl,da,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,pl');var TinyMCE_InsertDateTimePlugin={getInfo:function(){return{longname:'Insert date/time',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('insertdatetime');var TinyMCE_InsertDateTimePlugin={getInfo:function(){return{longname:'Insert date/time',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('insertdatetime','en,tr,cs,el,fr_ca,it,ko,sv,zh_cn,fa,fr,de,pl,pt_br,nl,da,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,pl');var TinyMCE_InsertDateTimePlugin={getInfo:function(){return{longname:'Insert date/time',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_insertdatetime.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},getControlHTML:function(cn){switch(cn){case"insertdate":return tinyMCE.getButtonHTML(cn,'lang_insertdate_desc','{$pluginurl}/images/insertdate.gif','mceInsertDate');case"inserttime":return tinyMCE.getButtonHTML(cn,'lang_inserttime_desc','{$pluginurl}/images/inserttime.gif','mceInsertTime');}return"";},execCommand:function(editor_id,element,command,user_interface,value){function addZeros(value,len){value=""+value;if(value.length<len){for(var i=0;i<(len-value.length);i++)value="0"+value;}return value;}function getDateTime(date,format){format=tinyMCE.regexpReplace(format,"%D","%m/%d/%y");format=tinyMCE.regexpReplace(format,"%r","%I:%M:%S %p");format=tinyMCE.regexpReplace(format,"%Y",""+date.getFullYear());format=tinyMCE.regexpReplace(format,"%y",""+date.getYear());format=tinyMCE.regexpReplace(format,"%m",addZeros(date.getMonth()+1,2));format=tinyMCE.regexpReplace(format,"%d",addZeros(date.getDate(),2));format=tinyMCE.regexpReplace(format,"%H",""+addZeros(date.getHours(),2));format=tinyMCE.regexpReplace(format,"%M",""+addZeros(date.getMinutes(),2));format=tinyMCE.regexpReplace(format,"%S",""+addZeros(date.getSeconds(),2));format=tinyMCE.regexpReplace(format,"%I",""+((date.getHours()+11)%12+1));format=tinyMCE.regexpReplace(format,"%p",""+(date.getHours()<12?"AM":"PM"));format=tinyMCE.regexpReplace(format,"%B",""+tinyMCE.getLang("lang_inserttime_months_long")[date.getMonth()]);format=tinyMCE.regexpReplace(format,"%b",""+tinyMCE.getLang("lang_inserttime_months_short")[date.getMonth()]);format=tinyMCE.regexpReplace(format,"%A",""+tinyMCE.getLang("lang_inserttime_day_long")[date.getDay()]);format=tinyMCE.regexpReplace(format,"%a",""+tinyMCE.getLang("lang_inserttime_day_short")[date.getDay()]);format=tinyMCE.regexpReplace(format,"%%","%");return format;}switch(command){case"mceInsertDate":tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,getDateTime(new Date(),tinyMCE.getParam("plugin_insertdate_dateFormat",tinyMCE.getLang('lang_insertdate_def_fmt'))));return true;case"mceInsertTime":tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,getDateTime(new Date(),tinyMCE.getParam("plugin_insertdate_timeFormat",tinyMCE.getLang('lang_inserttime_def_fmt'))));return true;}return false;}};tinyMCE.addPlugin("insertdatetime",TinyMCE_InsertDateTimePlugin); |
effect.element.undoPositionend(); | effect.element.undoPositioned(); | afterFinishInternal: function(effect) { effect.element.hide(); effect.element.undoClipping(); effect.element.undoPositionend(); effect.element.setStyle({opacity: oldOpacity}); } |
makePositioned(effect.element); | afterSetup: function(effect) { with(Element) { makePositioned(effect.element.firstChild); if(window.opera) setStyle(effect.element, {top: ''}); makeClipping(effect.element); setStyle(effect.element, {height: '0px'}); show(element); }}, |
|
ajaxDel.runAJAX('action=delete-' + what + '&id=' + id); | ajaxDel.runAJAX('action=delete-' + what + '&id=' + id + '&' + ajaxDel.encVar('cookie', document.cookie)); | function ajaxDelete(what, id) { ajaxDel = new sack('list-manipulation.php'); if ( ajaxDel.failed ) return true; ajaxDel.myResponseElement = getResponseElement(); ajaxDel.method = 'POST'; ajaxDel.onLoading = function() { ajaxDel.myResponseElement.innerHTML = 'Sending Data...'; }; ajaxDel.onLoaded = function() { ajaxDel.myResponseElement.innerHTML = 'Data Sent...'; }; ajaxDel.onInteractive = function() { ajaxDel.myResponseElement.innerHTML = 'Processing Data...'; }; ajaxDel.onCompletion = function() { removeThisItem( what + '-' + id ); }; ajaxDel.runAJAX('action=delete-' + what + '&id=' + id); return false;} |
this.relayBotToRC("browserbot.recordedAlerts"); | self.relayBotToRC("browserbot.recordedAlerts"); | windowToModify.alert = function(alert) { browserBot.recordedAlerts.push(alert); this.relayBotToRC("browserbot.recordedAlerts"); }; |
relayBotToRC("browserbot.recordedAlerts"); | windowToModify.alert = function(alert) { browserBot.recordedAlerts.push(alert); relayBotToRC("browserbot.recordedAlerts"); }; |
|
BX_xml.doc = BX_getResultXML(); BX_xml.showXml(); | BX_xml_source= BX_getResultXML(); var BX_source_window = window.open(BX_root_dir+"showsource/index.html","_blank",""); | function alertXML(){//alert(BX_ser.serializeToString(BX_xml)); BX_xml.doc = BX_getResultXML(); BX_xml.showXml();} |
BX_xml_source= BX_getResultXML(); var BX_source_window = window.open(BX_root_dir+"showsource/index.html","_blank",""); | BX_xml.doc = BX_getResultXML(); BX_xml.showXml(); | function alertXML(){ BX_xml_source= BX_getResultXML(); var BX_source_window = window.open(BX_root_dir+"showsource/index.html","_blank","");} |
throw _break; | throw $break; | all: function(iterator) { var result = true; this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw _break; }); return result; }, |
return ( (document.body.filters) && | try { filter = document.body.filters; } catch (e) { } return ( filter && | OpenLayers.Util.alphaHack = function() { var arVersion = navigator.appVersion.split("MSIE"); var version = parseFloat(arVersion[1]); return ( (document.body.filters) && (version >= 5.5) && (version < 7) );} |
var alphaHack = ( (document.body.filters) && | return ( (document.body.filters) && | OpenLayers.Util.alphaHack = function() { var arVersion = navigator.appVersion.split("MSIE"); var version = parseFloat(arVersion[1]); var alphaHack = ( (document.body.filters) && (version >= 5.5) && (version < 7) );} |
} else if (argval.match(new RegExp("^shared,(.*)"))) { | } else if (args = argval.match(new RegExp("^shared,(.*)"))) { | function analyze_arg(argval){ var ret = new Array(); var shared = false; if (argval == "shared") { shared = true; argval = "yes"; } else if (argval == null) { /* nothing */ } else if (argval.match(new RegExp("^shared,(.*)"))) { shared = true; argval = $1; } ret[0] = shared; ret[1] = argval; return ret;} |
argval = $1; | argval = args[1]; } else if (args = argval.match(new RegExp("(.*),shared$"))) { shared = true; argval = args[1]; | function analyze_arg(argval){ var ret = new Array(); var shared = false; if (argval == "shared") { shared = true; argval = "yes"; } else if (argval == null) { /* nothing */ } else if (argval.match(new RegExp("^shared,(.*)"))) { shared = true; argval = $1; } ret[0] = shared; ret[1] = argval; return ret;} |
throw _break; | throw $break; | any: function(iterator) { var result = true; this.each(function(value, index) { if (result &= (iterator || Prototype.K)(value, index)) throw _break; }); return result; }, |
options = { | options = Object.extend({ | Effect.Appear = function(element) { options = { from: 0.0, to: 1.0, beforeStart: function(effect) { effect.setOpacity(0); Element.show(effect.element); }, afterUpdate: function(effect) { Element.show(effect.element); } }.extend(arguments[1] || {}); new Effect.Opacity(element,options);} |
}.extend(arguments[1] || {}); | }, arguments[1] || {}); | Effect.Appear = function(element) { options = { from: 0.0, to: 1.0, beforeStart: function(effect) { effect.setOpacity(0); Element.show(effect.element); }, afterUpdate: function(effect) { Element.show(effect.element); } }.extend(arguments[1] || {}); new Effect.Opacity(element,options);} |
afterFinishInternal: function(effect) { Element.forceRerendering(effect.element); }, | Effect.Appear = function(element) { var options = Object.extend({ from: (Element.getStyle(element, 'display') == 'none' ? 0.0 : Element.getOpacity(element) || 0.0), to: 1.0, beforeSetup: function(effect) { with(Element) { setOpacity(effect.element, effect.options.from); show(effect.element); }} }, arguments[1] || {}); return new Effect.Opacity(element,options);} |
|
afterFinishInternal: function(effect) { effect.element.innerHTML += ""; }, | Effect.Appear = function(element) { var options = Object.extend({ from: (Element.getStyle(element, 'display') == 'none' ? 0.0 : Element.getOpacity(element) || 0.0), to: 1.0, beforeSetup: function(effect) { with(Element) { setOpacity(effect.element, effect.options.from); show(effect.element); }} }, arguments[1] || {}); return new Effect.Opacity(element,options);} |
|
options = Object.extend({ from: 0.0, | var options = Object.extend({ from: (Element.getStyle(element, "display") == "none" ? 0.0 : Element.getOpacity(element) || 0.0), | Effect.Appear = function(element) { options = Object.extend({ from: 0.0, to: 1.0, beforeStart: function(effect) { effect.setOpacity(0); Element.show(effect.element); }, afterUpdate: function(effect) { Element.show(effect.element); } }, arguments[1] || {}); new Effect.Opacity(element,options);} |
beforeStart: function(effect) { effect.setOpacity(0); Element.show(effect.element); }, afterUpdate: function(effect) { Element.show(effect.element); } | beforeSetup: function(effect) { Element.setOpacity(effect.element, effect.options.from); Element.show(effect.element); } | Effect.Appear = function(element) { options = Object.extend({ from: 0.0, to: 1.0, beforeStart: function(effect) { effect.setOpacity(0); Element.show(effect.element); }, afterUpdate: function(effect) { Element.show(effect.element); } }, arguments[1] || {}); new Effect.Opacity(element,options);} |
new Effect.Opacity(element,options); | return new Effect.Opacity(element,options); | Effect.Appear = function(element) { options = Object.extend({ from: 0.0, to: 1.0, beforeStart: function(effect) { effect.setOpacity(0); Element.show(effect.element); }, afterUpdate: function(effect) { Element.show(effect.element); } }, arguments[1] || {}); new Effect.Opacity(element,options);} |
options = Object.extend({ | var options = Object.extend({ | Effect.Appear = function(element) { options = Object.extend({ from: 0.0, to: 1.0, beforeStart: function(effect) { effect.setOpacity(0); Element.show(effect.element); }, afterUpdate: function(effect) { Element.show(effect.element); } }, arguments[1] || {}); return new Effect.Opacity(element,options);} |
SeleniumIDE.appendCheck = function(event) { | SeleniumIDE.Overlay.appendCheck = function(event) { | SeleniumIDE.appendCheck = function(event) { var command = event.target._Selenium_IDE_command; SeleniumIDE.Loader.getTopEditor().addCommand(command.command, command.target, command.value, command.window);} |
var i, s, ar = h.match(new RegExp('\\{\\$[a-z0-9_]+\\}', 'gi')); | return h.replace(new RegExp('\\{\\$([a-z0-9_]+)\\}', 'gi'), function(m, s) { if (s.indexOf('lang_') == 0 && tinyMCELang[s]) return tinyMCELang[s]; | applyTemplate : function(h, as) { var i, s, ar = h.match(new RegExp('\\{\\$[a-z0-9_]+\\}', 'gi')); if (ar && ar.length > 0) { for (i=ar.length-1; i>=0; i--) { s = ar[i].substring(2, ar[i].length-1); if (s.indexOf('lang_') == 0 && tinyMCELang[s]) h = tinyMCE.replaceVar(h, s, tinyMCELang[s]); else if (as && as[s]) h = tinyMCE.replaceVar(h, s, as[s]); else if (tinyMCE.settings[s]) h = tinyMCE.replaceVar(h, s, tinyMCE.settings[s]); } } h = tinyMCE.replaceVar(h, "themeurl", tinyMCE.themeURL); return h; }, |
if (ar && ar.length > 0) { for (i=ar.length-1; i>=0; i--) { s = ar[i].substring(2, ar[i].length-1); | if (as && as[s]) return as[s]; | applyTemplate : function(h, as) { var i, s, ar = h.match(new RegExp('\\{\\$[a-z0-9_]+\\}', 'gi')); if (ar && ar.length > 0) { for (i=ar.length-1; i>=0; i--) { s = ar[i].substring(2, ar[i].length-1); if (s.indexOf('lang_') == 0 && tinyMCELang[s]) h = tinyMCE.replaceVar(h, s, tinyMCELang[s]); else if (as && as[s]) h = tinyMCE.replaceVar(h, s, as[s]); else if (tinyMCE.settings[s]) h = tinyMCE.replaceVar(h, s, tinyMCE.settings[s]); } } h = tinyMCE.replaceVar(h, "themeurl", tinyMCE.themeURL); return h; }, |
if (s.indexOf('lang_') == 0 && tinyMCELang[s]) h = tinyMCE.replaceVar(h, s, tinyMCELang[s]); else if (as && as[s]) h = tinyMCE.replaceVar(h, s, as[s]); else if (tinyMCE.settings[s]) h = tinyMCE.replaceVar(h, s, tinyMCE.settings[s]); } } | if (tinyMCE.settings[s]) return tinyMCE.settings[s]; | applyTemplate : function(h, as) { var i, s, ar = h.match(new RegExp('\\{\\$[a-z0-9_]+\\}', 'gi')); if (ar && ar.length > 0) { for (i=ar.length-1; i>=0; i--) { s = ar[i].substring(2, ar[i].length-1); if (s.indexOf('lang_') == 0 && tinyMCELang[s]) h = tinyMCE.replaceVar(h, s, tinyMCELang[s]); else if (as && as[s]) h = tinyMCE.replaceVar(h, s, as[s]); else if (tinyMCE.settings[s]) h = tinyMCE.replaceVar(h, s, tinyMCE.settings[s]); } } h = tinyMCE.replaceVar(h, "themeurl", tinyMCE.themeURL); return h; }, |
h = tinyMCE.replaceVar(h, "themeurl", tinyMCE.themeURL); | if (m == 'themeurl') return tinyMCE.themeURL; | applyTemplate : function(h, as) { var i, s, ar = h.match(new RegExp('\\{\\$[a-z0-9_]+\\}', 'gi')); if (ar && ar.length > 0) { for (i=ar.length-1; i>=0; i--) { s = ar[i].substring(2, ar[i].length-1); if (s.indexOf('lang_') == 0 && tinyMCELang[s]) h = tinyMCE.replaceVar(h, s, tinyMCELang[s]); else if (as && as[s]) h = tinyMCE.replaceVar(h, s, as[s]); else if (tinyMCE.settings[s]) h = tinyMCE.replaceVar(h, s, tinyMCE.settings[s]); } } h = tinyMCE.replaceVar(h, "themeurl", tinyMCE.themeURL); return h; }, |
return h; | return m; }); | applyTemplate : function(h, as) { var i, s, ar = h.match(new RegExp('\\{\\$[a-z0-9_]+\\}', 'gi')); if (ar && ar.length > 0) { for (i=ar.length-1; i>=0; i--) { s = ar[i].substring(2, ar[i].length-1); if (s.indexOf('lang_') == 0 && tinyMCELang[s]) h = tinyMCE.replaceVar(h, s, tinyMCELang[s]); else if (as && as[s]) h = tinyMCE.replaceVar(h, s, as[s]); else if (tinyMCE.settings[s]) h = tinyMCE.replaceVar(h, s, tinyMCE.settings[s]); } } h = tinyMCE.replaceVar(h, "themeurl", tinyMCE.themeURL); return h; }, |
return Rico.Color.RGBtoHSB(this.rgb.r, this.rgb.g, this.rgb.b); | return OpenLayers.Rico.Color.RGBtoHSB(this.rgb.r, this.rgb.g, this.rgb.b); | asHSB: function() { return Rico.Color.RGBtoHSB(this.rgb.r, this.rgb.g, this.rgb.b); }, |
NotEquals.prototype.assert = function() { return "assertNotEquals(" + this.e1.toString() + ", " + this.e2.toString() + ")"; | EqualsArray.prototype.assert = function() { return this.assertOrVerify('assert'); | NotEquals.prototype.assert = function() { return "assertNotEquals(" + this.e1.toString() + ", " + this.e2.toString() + ")";} |
return "Assert.AreNotEqual(" + this.e1.toString() + ", " + this.e2.toString() + ")"; | return "Assert.AreNotEqual(" + this.e1.toString() + ", " + this.e2.toString() + ");"; | NotEquals.prototype.assert = function() { return "Assert.AreNotEqual(" + this.e1.toString() + ", " + this.e2.toString() + ")";} |
return expression.toString(); | return expression.toString() + ";"; | NotEquals.prototype.assert = function() { var expression = this.e2; expression.suffix = "_isnt"; expression.noGet = true; expression.args.push(this.e1); return expression.toString();} |
EqualsArray.prototype.assert = function() { return this.assertOrVerify('assert'); | NotEquals.prototype.assert = function() { return "assertNotEquals(" + this.e1.toString() + ", " + this.e2.toString() + ");"; | EqualsArray.prototype.assert = function() { return this.assertOrVerify('assert');} |
this.equals = function() { if (arguments.length == 2) { var comment = ""; var expected = arguments[0]; var actual = arguments[1]; } else { var comment = arguments[0] + " "; var expected = arguments[1]; var actual = arguments[2]; } if (expected === actual) { return; } var errorMessage = comment + "Expected '" + expected + "' but was '" + actual + "'"; throw new AssertionFailedError(errorMessage); }; this.fail = function(message) { throw new AssertionFailedError(message); }; | this.patternMatcher = new PatternMatcher(); | function Assert() { this.equals = function() { if (arguments.length == 2) { var comment = ""; var expected = arguments[0]; var actual = arguments[1]; } else { var comment = arguments[0] + " "; var expected = arguments[1]; var actual = arguments[2]; } if (expected === actual) { return; } var errorMessage = comment + "Expected '" + expected + "' but was '" + actual + "'"; throw new AssertionFailedError(errorMessage); }; this.fail = function(message) { throw new AssertionFailedError(message); };} |
throw new Error("Message must be provided"); | throw new SeleniumError("Message must be provided"); | Selenium.prototype.assertErrorOnNext = function(message) { /** * Tell Selenium to expect an error on the next command execution. * @param message The error message we should expect. This command will fail if the wrong error message appears. */ // This command temporarily installs a CommandFactory that generates // CommandHandlers that expect an error. if (!message) { throw new Error("Message must be provided"); } var expectFailureCommandFactory = new ExpectFailureCommandFactory(currentTest.commandFactory, message, "error", executeCommandAndReturnErrorMessage); currentTest.commandFactory = expectFailureCommandFactory;}; |
var expectFailureCommandFactory = new ExpectFailureCommandFactory(currentTest.commandFactory, message, "error", executeCommandAndReturnErrorMessage); currentTest.commandFactory = expectFailureCommandFactory; | currentTest.expectedFailure = message; currentTest.expectedFailureType = "error"; currentTest.expectedFailureJustSet = true; | Selenium.prototype.assertErrorOnNext = function(message) { /** * Tell Selenium to expect an error on the next command execution. * @param message The error message we should expect. This command will fail if the wrong error message appears. */ // This command temporarily installs a CommandFactory that generates // CommandHandlers that expect an error. if (!message) { throw new Error("Message must be provided"); } var expectFailureCommandFactory = new ExpectFailureCommandFactory(currentTest.commandFactory, message, "error", executeCommandAndReturnErrorMessage); currentTest.commandFactory = expectFailureCommandFactory;}; |
throw new Error("Message must be provided"); | throw new SeleniumError("Message must be provided"); | Selenium.prototype.assertFailureOnNext = function(message) { /** * Tell Selenium to expect a failure on the next command execution. * @param message The failure message we should expect. This command will fail if the wrong failure message appears. */ // This command temporarily installs a CommandFactory that generates // CommandHandlers that expect a failure. if (!message) { throw new Error("Message must be provided"); } var expectFailureCommandFactory = new ExpectFailureCommandFactory(currentTest.commandFactory, message, "failure", executeCommandAndReturnFailureMessage); currentTest.commandFactory = expectFailureCommandFactory;}; |
var expectFailureCommandFactory = new ExpectFailureCommandFactory(currentTest.commandFactory, message, "failure", executeCommandAndReturnFailureMessage); currentTest.commandFactory = expectFailureCommandFactory; | currentTest.expectedFailure = message; currentTest.expectedFailureType = "failure"; currentTest.expectedFailureJustSet = true; | Selenium.prototype.assertFailureOnNext = function(message) { /** * Tell Selenium to expect a failure on the next command execution. * @param message The failure message we should expect. This command will fail if the wrong failure message appears. */ // This command temporarily installs a CommandFactory that generates // CommandHandlers that expect a failure. if (!message) { throw new Error("Message must be provided"); } var expectFailureCommandFactory = new ExpectFailureCommandFactory(currentTest.commandFactory, message, "failure", executeCommandAndReturnFailureMessage); currentTest.commandFactory = expectFailureCommandFactory;}; |
return "assert !" + expression.toString(); | return "assert " + expression.invert().toString(); | function assertFalse(expression) { return "assert !" + expression.toString();} |
return "assertFalse(" + expression.toString() + ")"; | return "assertFalse(" + expression.toString() + ");"; | function assertFalse(expression) { return "assertFalse(" + expression.toString() + ")";} |
return "Assert.IsFalse(" + expression.toString() + ")"; | return "Assert.IsFalse(" + expression.toString() + ");"; | function assertFalse(expression) { return "Assert.IsFalse(" + expression.toString() + ")";} |
return "ok(not " + expression.toString() + ")"; | return "ok(not " + expression.toString() + ");"; | function assertFalse(expression) { return "ok(not " + expression.toString() + ")";} |
return "assertTrue(" + expression.toString() + ")"; | return "assertTrue(" + expression.toString() + ");"; | function assertTrue(expression) { return "assertTrue(" + expression.toString() + ")";} |
return "Assert.IsTrue(" + expression.toString() + ")"; | return "Assert.IsTrue(" + expression.toString() + ");"; | function assertTrue(expression) { return "Assert.IsTrue(" + expression.toString() + ")";} |
return expression.toString(); | return expression.toString() + ";"; | function assertTrue(expression) { expression.suffix = "_ok"; return expression.toString();} |
} | }, | assertVisible: function(element) { this.assert(this._isVisible(element), Test.Unit.inspect(element) + " was not visible. " + ("" || arguments[1])); } |
addAnEvent(divs[i], 'mouseup', function(e){ | divs[i].onmouseup = function(e){ if (e==null) e = event; | function attachSliderEvents() { var divs=document.getElementsByTagName('div'); var divNum; for(var i=0; i<divs.length; i++) { if (divNum=divs[i].id.match(/\bslider(\d+)\b/)) { divNum=parseInt(divNum[1]); divs[i].min=slider[divNum].min; divs[i].max=slider[divNum].max; divs[i].val=slider[divNum].val; divs[i].onchange=slider[divNum].onchange; divs[i].num=divNum; addAnEvent(divs[i], 'mousedown', function(e){ sliderClick(e); var el=sliderFromEvent(e); if (!el) return; activeSlider=el.num; stopEvent(e); }); addAnEvent(divs[i], 'mouseup', function(e){ activeSlider=-1; stopEvent(e); }); } }} |
}); | }; | function attachSliderEvents() { var divs=document.getElementsByTagName('div'); var divNum; for(var i=0; i<divs.length; i++) { if (divNum=divs[i].id.match(/\bslider(\d+)\b/)) { divNum=parseInt(divNum[1]); divs[i].min=slider[divNum].min; divs[i].max=slider[divNum].max; divs[i].val=slider[divNum].val; divs[i].onchange=slider[divNum].onchange; divs[i].num=divNum; addAnEvent(divs[i], 'mousedown', function(e){ sliderClick(e); var el=sliderFromEvent(e); if (!el) return; activeSlider=el.num; stopEvent(e); }); addAnEvent(divs[i], 'mouseup', function(e){ activeSlider=-1; stopEvent(e); }); } }} |
var name = attNames[i]; locator += '@' + name + "=" + this.attributeValue(attributes[name]); | var attName = attNames[i]; locator += '@' + attName + "=" + this.attributeValue(attributes[attName]); | attributesXPath: function(name, attNames, attributes) { var locator = "//" + name + "["; for (var i = 0; i < attNames.length; i++) { if (i > 0) { locator += " and "; } var name = attNames[i]; locator += '@' + name + "=" + this.attributeValue(attributes[name]); } locator += "]"; return locator; }, |
locator += '@' + name + "=\'" + attributes[name].replace(/\"/g, """) + "\'"; | locator += '@' + name + "=" + this.attributeValue(attributes[name]); | attributesXPath: function(name, attNames, attributes) { var locator = "//" + name + "["; for (var i = 0; i < attNames.length; i++) { if (i > 0) { locator += " and "; } var name = attNames[i]; locator += '@' + name + "=\'" + attributes[name].replace(/\"/g, """) + "\'"; } locator += "]"; return locator; }, |
if (!tinyMCE.isMSIE && this.isHidden() && tinyMCE.getParam('auto_reset_designmode')) eval('try { this.getDoc().designMode = "On"; } catch(e) {}'); | if (!tinyMCE.isIE && this.isHidden() && tinyMCE.getParam('auto_reset_designmode')) eval('try { this.getDoc().designMode = "On"; this.useCSS = false; } catch(e) {}'); | autoResetDesignMode : function() { // Add fix for tab/style.display none/block problems in Gecko if (!tinyMCE.isMSIE && this.isHidden() && tinyMCE.getParam('auto_reset_designmode')) eval('try { this.getDoc().designMode = "On"; } catch(e) {}'); }, |
new Effect.Appear(update,{duration:0.15}); | Effect.Appear(update,{duration:0.15}); | baseInitialize: function(element, update, options) { this.element = $(element); this.update = $(update); this.hasFocus = false; this.changed = false; this.active = false; this.index = 0; this.entryCount = 0; if (this.setOptions) this.setOptions(options); else this.options = options || {}; this.options.paramName = this.options.paramName || this.element.name; this.options.tokens = this.options.tokens || []; this.options.frequency = this.options.frequency || 0.4; this.options.minChars = this.options.minChars || 1; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight}); } new Effect.Appear(update,{duration:0.15}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.15}) }; if (typeof(this.options.tokens) == 'string') this.options.tokens = new Array(this.options.tokens); this.observer = null; this.element.setAttribute('autocomplete','off'); Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, |
var offsets = Position.positionedOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; | Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight}); | baseInitialize: function(element, update, options) { this.element = $(element); this.update = $(update); this.hasFocus = false; this.changed = false; this.active = false; this.index = 0; this.entryCount = 0; if (this.setOptions) this.setOptions(options); else this.options = options || {}; this.options.paramName = this.options.paramName || this.element.name; this.options.tokens = this.options.tokens || []; this.options.frequency = this.options.frequency || 0.4; this.options.minChars = this.options.minChars || 1; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.positionedOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.15}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.15}) }; if (typeof(this.options.tokens) == 'string') this.options.tokens = new Array(this.options.tokens); this.observer = null; this.element.setAttribute('autocomplete','off'); Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, |
this.element.setAttribute('autocomplete','off'); | baseInitialize: function(element, update, options) { this.element = $(element); this.update = $(update); this.hasFocus = false; this.changed = false; this.active = false; this.index = 0; this.entryCount = 0; if (this.setOptions) this.setOptions(options); else this.options = options || {}; this.options.paramName = this.options.paramName || this.element.name; this.options.tokens = this.options.tokens || []; this.options.frequency = this.options.frequency || 0.4; this.options.minChars = this.options.minChars || 1; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.15}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.15}) }; if (typeof(this.options.tokens) == 'string') this.options.tokens = new Array(this.options.tokens); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, |
|
var offsets = Position.cumulativeOffset(element); | var offsets = Position.positionedOffset(element); | baseInitialize: function(element, update, options) { this.element = $(element); this.update = $(update); this.hasFocus = false; this.changed = false; this.active = false; this.index = 0; this.entryCount = 0; if (this.setOptions) this.setOptions(options); else this.options = options || {}; this.options.paramName = this.options.paramName || this.element.name; this.options.tokens = this.options.tokens || []; this.options.frequency = this.options.frequency || 0.4; this.options.minChars = this.options.minChars || 1; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.15}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.15}) }; if (typeof(this.options.tokens) == 'string') this.options.tokens = new Array(this.options.tokens); this.observer = null; this.element.setAttribute('autocomplete','off'); Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, |
effect.effects[0].element.setStyle({position: 'absolute'}); }, | Position.absolutize(effect.effects[0].element) }, | beforeSetupInternal: function(effect) { effect.effects[0].element.setStyle({position: 'absolute'}); }, |
makePositioned(effect.element); | beforeStartInternal: function(effect) { with(Element) { makePositioned(effect.element.firstChild); if(window.opera) setStyle(effect.element, {top: ''}); makeClipping(effect.element); show(element); }}, |
|
LOG.debug("testLoop.beginNextTest()"); | this.beginNextTest = function() { if (this.currentCommand) { // TODO: rename commandStarted to commandSelected, OR roll it into nextCommand this.commandStarted(this.currentCommand); this.resumeAfterDelay(); } else { this.testComplete(); } } |
|
this.testComplete(); | this._testComplete(); | beginNextTest : function() { LOG.debug("currentTest.beginNextTest()"); if (this.currentCommand) { // TODO: rename commandStarted to commandSelected, OR roll it into nextCommand this.commandStarted(this.currentCommand); this._resumeAfterDelay(); } else { this.testComplete(); } }, |
__method.apply(object, arguments); | return __method.apply(object, arguments); | Function.prototype.bind = function(object) { var __method = this; return function() { __method.apply(object, arguments); }} |
__method.call(object, event || window.event); | return __method.call(object, event || window.event); | Function.prototype.bindAsEventListener = function(object) { var __method = this; return function(event) { __method.call(object, event || window.event); }} |
{ scaleContent: false, | Object.extend({ scaleContent: false, | Effect.BlindDown = function(element) { $(element).style.height = '0px'; Element.makeClipping(element); Element.show(element); new Effect.Scale(element, 100, { scaleContent: false, scaleX: false, scaleMode: 'contents', scaleFrom: 0, afterFinish: function(effect) { Element.undoClipping(effect.element); } }.extend(arguments[1] || {}) );} |
}.extend(arguments[1] || {}) | }, arguments[1] || {}) | Effect.BlindDown = function(element) { $(element).style.height = '0px'; Element.makeClipping(element); Element.show(element); new Effect.Scale(element, 100, { scaleContent: false, scaleX: false, scaleMode: 'contents', scaleFrom: 0, afterFinish: function(effect) { Element.undoClipping(effect.element); } }.extend(arguments[1] || {}) );} |
scaleFrom: 0 | scaleFrom: 0, afterFinish: function(effect) { effect.element.style.overflow = effect.element._overflow; } | Effect.BlindDown = function(element) { $(element).style.height = '0px'; $(element).style.overflow = 'hidden'; Element.show(element); new Effect.Scale(element, 100, { scaleContent: false, scaleX: false, scaleMode: 'contents', scaleFrom: 0 }.extend(arguments[1] || {}) );} |
var oldHeight = Element.getStyle(element, 'height'); | Effect.BlindDown = function(element) { element = $(element); var oldHeight = Element.getStyle(element, 'height'); var elementDimensions = Element.getDimensions(element); return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { with(Element) { makeClipping(effect.element); setStyle(effect.element, {height: '0px'}); show(effect.element); }}, afterFinishInternal: function(effect) { with(Element) { undoClipping(effect.element); setStyle(effect.element, {height: oldHeight}); }} }, arguments[1] || {}) );} |
|
afterFinishInternal: function(effect) { with(Element) { undoClipping(effect.element); setStyle(effect.element, {height: oldHeight}); }} | afterFinishInternal: function(effect) { Element.undoClipping(effect.element); } | Effect.BlindDown = function(element) { element = $(element); var oldHeight = Element.getStyle(element, 'height'); var elementDimensions = Element.getDimensions(element); return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { with(Element) { makeClipping(effect.element); setStyle(effect.element, {height: '0px'}); show(effect.element); }}, afterFinishInternal: function(effect) { with(Element) { undoClipping(effect.element); setStyle(effect.element, {height: oldHeight}); }} }, arguments[1] || {}) );} |
$(element).style.height = '0px'; | element = $(element); element.style.height = '0px'; | Effect.BlindDown = function(element) { $(element).style.height = '0px'; Element.makeClipping(element); Element.show(element); return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleMode: 'contents', scaleFrom: 0, afterFinish: function(effect) { Element.undoClipping(effect.element); } }, arguments[1] || {}) );} |
return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makeClipping(); effect.element.setStyle({height: '0px'}); effect.element.show(); }, afterFinishInternal: function(effect) { effect.element.undoClipping(); } }, arguments[1] || {}) ); | return new Effect.Scale(element, 100, $H({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makeClipping(); effect.element.setStyle({height: '0px'}); effect.element.show(); }, afterFinishInternal: function(effect) { effect.element.undoClipping(); } }).merge(arguments[1] || {})); | Effect.BlindDown = function(element) { element = $(element); var elementDimensions = element.getDimensions(); return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makeClipping(); effect.element.setStyle({height: '0px'}); effect.element.show(); }, afterFinishInternal: function(effect) { effect.element.undoClipping(); } }, arguments[1] || {}) );} |
$(element).style.height = '0px'; Element.makeClipping(element); Element.show(element); new Effect.Scale(element, 100, | element = $(element); var oldHeight = element.style.height; var elementDimensions = Element.getDimensions(element); return new Effect.Scale(element, 100, | Effect.BlindDown = function(element) { $(element).style.height = '0px'; Element.makeClipping(element); Element.show(element); new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleMode: 'contents', scaleFrom: 0, afterFinish: function(effect) { Element.undoClipping(effect.element); } }, arguments[1] || {}) );} |
scaleX: false, scaleMode: 'contents', | scaleX: false, | Effect.BlindDown = function(element) { $(element).style.height = '0px'; Element.makeClipping(element); Element.show(element); new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleMode: 'contents', scaleFrom: 0, afterFinish: function(effect) { Element.undoClipping(effect.element); } }, arguments[1] || {}) );} |
afterFinish: function(effect) { | scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { Element.makeClipping(effect.element); effect.element.style.height = "0px"; Element.show(effect.element); }, afterFinishInternal: function(effect) { | Effect.BlindDown = function(element) { $(element).style.height = '0px'; Element.makeClipping(element); Element.show(element); new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleMode: 'contents', scaleFrom: 0, afterFinish: function(effect) { Element.undoClipping(effect.element); } }, arguments[1] || {}) );} |
effect.element.style.height = oldHeight; | Effect.BlindDown = function(element) { $(element).style.height = '0px'; Element.makeClipping(element); Element.show(element); new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleMode: 'contents', scaleFrom: 0, afterFinish: function(effect) { Element.undoClipping(effect.element); } }, arguments[1] || {}) );} |
|
return new Effect.Scale(element, 100, $H({ | return new Effect.Scale(element, 100, Object.extend({ | Effect.BlindDown = function(element) { element = $(element); var elementDimensions = element.getDimensions(); return new Effect.Scale(element, 100, $H({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makeClipping(); effect.element.setStyle({height: '0px'}); effect.element.show(); }, afterFinishInternal: function(effect) { effect.element.undoClipping(); } }).merge(arguments[1] || {}));} |
}).merge(arguments[1] || {})); | }, arguments[1] || {})); | Effect.BlindDown = function(element) { element = $(element); var elementDimensions = element.getDimensions(); return new Effect.Scale(element, 100, $H({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makeClipping(); effect.element.setStyle({height: '0px'}); effect.element.show(); }, afterFinishInternal: function(effect) { effect.element.undoClipping(); } }).merge(arguments[1] || {}));} |
{ scaleContent: false, | Object.extend({ scaleContent: false, | Effect.BlindUp = function(element) { Element.makeClipping(element); new Effect.Scale(element, 0, { scaleContent: false, scaleX: false, afterFinish: function(effect) { Element.hide(effect.element); Element.undoClipping(effect.element); } }.extend(arguments[1] || {}) );} |
}.extend(arguments[1] || {}) | }, arguments[1] || {}) | Effect.BlindUp = function(element) { Element.makeClipping(element); new Effect.Scale(element, 0, { scaleContent: false, scaleX: false, afterFinish: function(effect) { Element.hide(effect.element); Element.undoClipping(effect.element); } }.extend(arguments[1] || {}) );} |
{ Element.hide(effect.element) } | { Element.hide(effect.element); effect.element.style.overflow = effect.element._overflow; } | Effect.BlindUp = function(element) { $(element).style.overflow = 'hidden'; new Effect.Scale(element, 0, { scaleContent: false, scaleX: false, afterFinish: function(effect) { Element.hide(effect.element) } }.extend(arguments[1] || {}) );} |
element = $(element); | Effect.BlindUp = function(element) { Element.makeClipping(element); return new Effect.Scale(element, 0, Object.extend({ scaleContent: false, scaleX: false, afterFinish: function(effect) { Element.hide(effect.element); Element.undoClipping(effect.element); } }, arguments[1] || {}) );} |
|
new Effect.Scale(element, 0, | return new Effect.Scale(element, 0, | Effect.BlindUp = function(element) { Element.makeClipping(element); new Effect.Scale(element, 0, Object.extend({ scaleContent: false, scaleX: false, afterFinish: function(effect) { Element.hide(effect.element); Element.undoClipping(effect.element); } }, arguments[1] || {}) );} |
afterFinish: function(effect) | restoreAfterFinish: true, afterFinishInternal: function(effect) | Effect.BlindUp = function(element) { Element.makeClipping(element); new Effect.Scale(element, 0, Object.extend({ scaleContent: false, scaleX: false, afterFinish: function(effect) { Element.hide(effect.element); Element.undoClipping(effect.element); } }, arguments[1] || {}) );} |
window.setTimeout(execStrikethroughCommand, commandCount * commandDelay); | window.setTimeout(execBoldCommand, commandCount * commandDelay); | function boldCommand() { if (commandDelay > 0) { window.setTimeout(execStrikethroughCommand, commandCount * commandDelay); commandCount++; } else { execStrikethroughCommand(); }} |
execStrikethroughCommand(); | execBoldCommand(); | function boldCommand() { if (commandDelay > 0) { window.setTimeout(execStrikethroughCommand, commandCount * commandDelay); commandCount++; } else { execStrikethroughCommand(); }} |
window.setTimeout(execBoldCommand, commandCount * commandDelay); | window.setTimeout(execStrikethroughCommand, commandCount * commandDelay); | function boldCommand() { if (commandDelay > 0) { window.setTimeout(execBoldCommand, commandCount * commandDelay); commandCount++; } else { execBoldCommand(); }} |
execBoldCommand(); | execStrikethroughCommand(); | function boldCommand() { if (commandDelay > 0) { window.setTimeout(execBoldCommand, commandCount * commandDelay); commandCount++; } else { execBoldCommand(); }} |
if (row.hasStyleClass("breakpoint")) toggleBreakpoint(row, file, lineNum); else | if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else | function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) toggleBreakpoint(row, file, lineNum); else createBreakpoint(row, file, lineNum);} |
var row = event.target.parentNode; | function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);} |
|
var lineNum = parseInt(event.target.title); | var lineNum = event.target.title; | function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);} |
if (row.hasStyleClass("breakpoint")) { | if (file.breakpoints[lineNum]) { | function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);} |
pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); | pendingAction = setTimeout(toggleBreakpointOnLine, DebuggerDocument.doubleClickMilliseconds(), lineNum); | function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);} |
createBreakpoint(row, file, lineNum); | file.breakpoints[lineNum] = new BreakPoint(event.target.parentNode, file, lineNum); | function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);} |
var sourcesDocument = document.getElementById("sources").contentDocument; | function breakpointDrag(event){ if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.opacity = "0"; else dragImage.style.opacity = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }} |
|
dragImage.style.opacity = "0"; | dragImage.style.visibility = "hidden"; | function breakpointDrag(event){ if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.opacity = "0"; else dragImage.style.opacity = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }} |
dragImage.style.opacity = null; | dragImage.style.visibility = null; | function breakpointDrag(event){ if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.opacity = "0"; else dragImage.style.opacity = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }} |
draggingBreakpoint.started = true; | function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); draggingBreakpoint.started = true; var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }} |
|
if(draggingBreakpoint.isDisabled) | var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) | function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); draggingBreakpoint.started = true; var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }} |