Archive for the ‘Code Patterns’ Category
Monday, September 28th, 2009
If you modify records of an editable grid with paging and if you then page-out, your changes are lost. Well, they are not lost in fact unless you have set pruneModifiedRecords:true on the strore. The modifications are still available so we just need to apply them. Here is the code ...
Posted in Code Patterns | 4 Comments »
Thursday, April 3rd, 2008
var msg = "From inline function";
var result = (function(m) {
alert(m);
return "Result of inline function";
}(msg));
alert(result);
Posted in Code Patterns | 4 Comments »
Wednesday, April 2nd, 2008
,items:(function(){
var items = [];
// populate items array
return items;
}).createDelegate(this)()
Posted in Code Patterns | 4 Comments »
Wednesday, April 2nd, 2008
var text = 'Deferred';
(function() {
alert(text);
}.defer(2000, this));
Posted in Code Patterns | No Comments »