Skip to content

Commit

Permalink
switched to automated builded weinre script
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrebnov committed Aug 11, 2012
1 parent 542b323 commit 6f1d342
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions WindowsPhone/www/target-script-min.js
Expand Up @@ -1253,16 +1253,13 @@ var xhr;
if (null === handler) {
throw new Ex(arguments, "handler must not be null");
}

xhr = new XMLHttpRequestPatched();
xhr.httpSocket = this;
xhr.httpSocketHandler = handler;
xhr.onreadystatechange = _xhrEventHandler;

HookLib.ignoreHooks(function() {
return xhr.open(method, url, true);
});

xhr.setRequestHeader("Content-Type", "text/plain");
return HookLib.ignoreHooks(function() {
return xhr.send(data);
Expand Down Expand Up @@ -1541,7 +1538,7 @@ require("../common/MethodNamer").setNamesForClass(module.exports);
;
// weinre/target/CSSStore.amd.js
;modjewel.define("weinre/target/CSSStore", function(require, exports, module) {
var CSSStore, IDGenerator, Weinre, _elementMatchesSelector, _fallbackMatchesSelector, _getMappableId, _getMappableObject, _mozMatchesSelector, _webkitMatchesSelector, _msMatchesSelector;
var CSSStore, IDGenerator, Weinre, _elementMatchesSelector, _fallbackMatchesSelector, _getMappableId, _getMappableObject, _mozMatchesSelector, _msMatchesSelector, _webkitMatchesSelector;
IDGenerator = require('../common/IDGenerator');
Weinre = require('../common/Weinre');
_elementMatchesSelector = null;
Expand Down Expand Up @@ -1872,7 +1869,7 @@ if (!element.msMatchesSelector) {
return false;
}
return element.msMatchesSelector(selector);
}
};
_fallbackMatchesSelector = function(element, selector) {
return false;
};
Expand All @@ -1881,7 +1878,7 @@ _elementMatchesSelector = _webkitMatchesSelector;
} else if (Element.prototype.mozMatchesSelector) {
_elementMatchesSelector = _mozMatchesSelector;
} else if (Element.prototype.msMatchesSelector) {
_elementMatchesSelector = _msMatchesSelector;
_elementMatchesSelector = _msMatchesSelector;
} else {
_elementMatchesSelector = _fallbackMatchesSelector;
}
Expand Down Expand Up @@ -2423,9 +2420,7 @@ if (obj instanceof inspectedWindow.Node) {
try {
return (obj.nodeType === undefined ? type : "node");
} catch (ex) {}
if (obj.toString)
return obj.toString();
return "node";
}
if (obj instanceof inspectedWindow.String)
return "string";
Expand Down Expand Up @@ -4657,4 +4652,4 @@ modjewel.require('weinre/common/Weinre').addIDLs([{"interfaces": [{"name": "Inje
;
// modjewel.require('weinre/common/Weinre').showNotImplemented();
modjewel.require('weinre/target/Target').main()
})();
})();

0 comments on commit 6f1d342

Please sign in to comment.