nmishra/helpers.js — pull request #1 by loefflerc (2013-04-02 14:21:18+00:00)
Title: rewrite for using autoloader

rewrite of the CompareObject routine using Ext.define() according to the guidelines for compiler friendly code. This is useful if you use autoloading.

In a demo file

Ext.Loader.setConfig({
enabled: true,
disableCaching: false,
paths: {
'Ext.ux.util': 'util'
}
});

Ext.require('Ext.ux.util.Object');

Ext.onReady(function() {
var a = {t: 'test'},
b = {t: 'test'};
console.log(a, ' - ', b);

var c = Ext.ux.util.Object.compareObject(a, b);
console.log('isEqual: ', c);

});