aboutsummaryrefslogtreecommitdiffstats
path: root/src/Browser.js
diff options
context:
space:
mode:
authorMisko Hevery2011-09-08 13:56:29 -0700
committerIgor Minar2011-10-11 11:01:45 -0700
commit4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (patch)
tree91f70bb89b9c095126fbc093f51cedbac5cb0c78 /src/Browser.js
parentdf6d2ba3266de405ad6c2f270f24569355706e76 (diff)
downloadangular.js-4f78fd692c0ec51241476e6be9a4df06cd62fdd6.tar.bz2
feat(forms): new and improved forms
Diffstat (limited to 'src/Browser.js')
-rw-r--r--src/Browser.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Browser.js b/src/Browser.js
index ed12441a..77d1c684 100644
--- a/src/Browser.js
+++ b/src/Browser.js
@@ -105,7 +105,7 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
window[callbackId].data = data;
};
- var script = self.addJs(url.replace('JSON_CALLBACK', callbackId), null, function() {
+ var script = self.addJs(url.replace('JSON_CALLBACK', callbackId), function() {
if (window[callbackId].data) {
completeOutstandingRequest(callback, 200, window[callbackId].data);
} else {
@@ -442,24 +442,18 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
* @methodOf angular.service.$browser
*
* @param {string} url Url to js file
- * @param {string=} domId Optional id for the script tag
*
* @description
* Adds a script tag to the head.
*/
- self.addJs = function(url, domId, done) {
+ self.addJs = function(url, done) {
// we can't use jQuery/jqLite here because jQuery does crazy shit with script elements, e.g.:
// - fetches local scripts via XHR and evals them
// - adds and immediately removes script elements from the document
- //
- // We need addJs to be able to add angular-ie-compat.js which is very special and must remain
- // part of the DOM so that the embedded images can reference it. jQuery's append implementation
- // (v1.4.2) fubars it.
var script = rawDocument.createElement('script');
script.type = 'text/javascript';
script.src = url;
- if (domId) script.id = domId;
if (msie) {
script.onreadystatechange = function() {