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