Fixed ajax name spacing issue. Added controller based .abort() on remove of controller from DOM (improved memory management).

This commit is contained in:
Martin Edenhofer 2013-08-07 09:46:51 +02:00
parent d4caa3fbfc
commit 8295d19e35

View file

@ -1,6 +1,6 @@
// ajax
App.Com.ajax({
App.Ajax.request({
type: 'GET',
url: '/assets/tests/ajax-test.json',
success: function (data) {
@ -18,7 +18,7 @@ App.Com.ajax({
});
// ajax queueing
App.Com.ajax({
App.Ajax.request({
type: 'GET',
url: '/tests/wait/2',
queue: true,
@ -38,7 +38,7 @@ App.Com.ajax({
});
}
});
App.Com.ajax({
App.Ajax.request({
type: 'GET',
url: '/tests/wait/1',
queue: true,
@ -60,7 +60,7 @@ App.Com.ajax({
});
// ajax parallel
App.Com.ajax({
App.Ajax.request({
type: 'GET',
url: '/tests/wait/2',
success: function (data) {
@ -79,7 +79,7 @@ App.Com.ajax({
});
}
});
App.Com.ajax({
App.Ajax.request({
type: 'GET',
url: '/tests/wait/1',
success: function (data) {
@ -210,7 +210,7 @@ App.Delay.set( function() {
App.Interval.clear('interval-test1')
});
},
2500
2400
);
App.Delay.set( function() {
test( "interval - test 1 - 1/1", function() {
@ -240,7 +240,7 @@ App.Delay.set( function() {
App.Interval.clearLevel('page')
});
},
2500
2400
);
App.Delay.set( function() {
test( "interval - test 2 - 1/1", function() {