library angular2_http.src.backends.browser_jsonp; import 'package:angular2/di.dart'; import 'dart:html' show document; import 'dart:js' show context, JsObject, JsArray; int _nextRequestId = 0; const JSONP_HOME = '__ng_jsonp__'; var _jsonpConnections = null; JsObject _getJsonpConnections() { if (_jsonpConnections == null) { _jsonpConnections = context[JSONP_HOME] = new JsObject(context['Object']); } return _jsonpConnections; } // Make sure not to evaluate this in a non-browser environment! @Injectable() class BrowserJsonp { // Construct a