Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 1b0e6bf

Browse files
Adding proper min files
1 parent 0e9b42b commit 1b0e6bf

File tree

9 files changed

+41
-40
lines changed

9 files changed

+41
-40
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module.exports = function (grunt) {
6868
},
6969
compat: {
7070
src: ['<banner>', 'dist/rx.dom.compat.js'],
71-
dest: 'dist/rx.dom.min.js'
71+
dest: 'dist/rx.dom.compat.min.js'
7272
},
7373
},
7474
qunit: {

dist/rx.dom.compat.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@
263263
* Creates a cold observable for an Ajax request with either a settings object with url, headers, etc or a string for a URL.
264264
*
265265
* @example
266-
* source = Rx.DOM.Request.ajaxCold('/products');
267-
* source = Rx.DOM.Request.ajaxCold( url: 'products', method: 'GET' });
266+
* source = Rx.DOM.ajax('/products');
267+
* source = Rx.DOM.ajax( url: 'products', method: 'GET' });
268268
*
269269
* @param {Object} settings Can be one of the following:
270270
*
@@ -277,7 +277,7 @@
277277
*
278278
* @returns {Observable} An observable sequence containing the XMLHttpRequest.
279279
*/
280-
var ajaxRequest = ajax.ajax = function (settings) {
280+
var ajaxRequest = dom.ajax = function (settings) {
281281
return new AnonymousObservable(function (observer) {
282282
var isDone = false;
283283
if (typeof settings === 'string') {
@@ -347,7 +347,7 @@
347347
* @param {Object} body The body to POST
348348
* @returns {Observable} The observable sequence which contains the response from the Ajax POST.
349349
*/
350-
ajax.post = function (url, body) {
350+
dom.post = function (url, body) {
351351
return ajaxRequest({ url: url, body: body, method: 'POST', async: true });
352352
};
353353

@@ -357,7 +357,7 @@
357357
* @param {String} url The URL to GET
358358
* @returns {Observable} The observable sequence which contains the response from the Ajax GET.
359359
*/
360-
var observableGet = ajax.get = function (url) {
360+
var observableGet = dom.get = function (url) {
361361
return ajaxRequest({ url: url, method: 'GET', async: true });
362362
};
363363

@@ -369,7 +369,7 @@
369369
* @param {String} url The URL to GET
370370
* @returns {Observable} The observable sequence which contains the parsed JSON.
371371
*/
372-
ajax.getJSON = function (url) {
372+
dom.getJSON = function (url) {
373373
return observableGet(url).map(function (xhr) {
374374
return JSON.parse(xhr.responseText);
375375
});
@@ -391,8 +391,8 @@
391391
* Creates a cold observable JSONP Request with the specified settings.
392392
*
393393
* @example
394-
* source = Rx.DOM.Request.jsonpRequest('http://www.bing.com/?q=foo&JSONPRequest=?');
395-
* source = Rx.DOM.Request.jsonpRequest( url: 'http://bing.com/?q=foo', jsonp: 'JSONPRequest' });
394+
* source = Rx.DOM.jsonpRequest('http://www.bing.com/?q=foo&JSONPRequest=?');
395+
* source = Rx.DOM.jsonpRequest( url: 'http://bing.com/?q=foo', jsonp: 'JSONPRequest' });
396396
*
397397
* @param {Object} settings Can be one of the following:
398398
*
@@ -404,7 +404,7 @@
404404
*
405405
* @returns {Observable} A cold observable containing the results from the JSONP call.
406406
*/
407-
ajax.jsonpRequest = (function () {
407+
dom.jsonpRequest = (function () {
408408
var uniqueId = 0;
409409
var defaultCallback = function _defaultCallback(observer, data) {
410410
observer.onNext(data);

dist/rx.dom.compat.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.dom.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@
174174
* Creates a cold observable for an Ajax request with either a settings object with url, headers, etc or a string for a URL.
175175
*
176176
* @example
177-
* source = Rx.DOM.Request.ajaxCold('/products');
178-
* source = Rx.DOM.Request.ajaxCold( url: 'products', method: 'GET' });
177+
* source = Rx.DOM.ajax('/products');
178+
* source = Rx.DOM.ajax( url: 'products', method: 'GET' });
179179
*
180180
* @param {Object} settings Can be one of the following:
181181
*
@@ -188,7 +188,7 @@
188188
*
189189
* @returns {Observable} An observable sequence containing the XMLHttpRequest.
190190
*/
191-
var ajaxRequest = ajax.ajax = function (settings) {
191+
var ajaxRequest = dom.ajax = function (settings) {
192192
return new AnonymousObservable(function (observer) {
193193
var isDone = false;
194194
if (typeof settings === 'string') {
@@ -258,7 +258,7 @@
258258
* @param {Object} body The body to POST
259259
* @returns {Observable} The observable sequence which contains the response from the Ajax POST.
260260
*/
261-
ajax.post = function (url, body) {
261+
dom.post = function (url, body) {
262262
return ajaxRequest({ url: url, body: body, method: 'POST', async: true });
263263
};
264264

@@ -268,7 +268,7 @@
268268
* @param {String} url The URL to GET
269269
* @returns {Observable} The observable sequence which contains the response from the Ajax GET.
270270
*/
271-
var observableGet = ajax.get = function (url) {
271+
var observableGet = dom.get = function (url) {
272272
return ajaxRequest({ url: url, method: 'GET', async: true });
273273
};
274274

@@ -280,7 +280,7 @@
280280
* @param {String} url The URL to GET
281281
* @returns {Observable} The observable sequence which contains the parsed JSON.
282282
*/
283-
ajax.getJSON = function (url) {
283+
dom.getJSON = function (url) {
284284
return observableGet(url).map(function (xhr) {
285285
return JSON.parse(xhr.responseText);
286286
});
@@ -302,8 +302,8 @@
302302
* Creates a cold observable JSONP Request with the specified settings.
303303
*
304304
* @example
305-
* source = Rx.DOM.Request.jsonpRequest('http://www.bing.com/?q=foo&JSONPRequest=?');
306-
* source = Rx.DOM.Request.jsonpRequest( url: 'http://bing.com/?q=foo', jsonp: 'JSONPRequest' });
305+
* source = Rx.DOM.jsonpRequest('http://www.bing.com/?q=foo&JSONPRequest=?');
306+
* source = Rx.DOM.jsonpRequest( url: 'http://bing.com/?q=foo', jsonp: 'JSONPRequest' });
307307
*
308308
* @param {Object} settings Can be one of the following:
309309
*
@@ -315,7 +315,7 @@
315315
*
316316
* @returns {Observable} A cold observable containing the results from the JSONP call.
317317
*/
318-
ajax.jsonpRequest = (function () {
318+
dom.jsonpRequest = (function () {
319319
var uniqueId = 0;
320320
var defaultCallback = function _defaultCallback(observer, data) {
321321
observer.onNext(data);

0 commit comments

Comments
 (0)