UNPKG

shubhadownloader

Version:

There is large amount of information available in market place. The markets are always in sync. In today's world investors find it very difficult to make effective use of information available to them. Shubha Downloader is great tool which resolves this problem and helps investor to increase his productivity and stay focused on decision making. Shubha Downloader enable end user to download market data from available sources and organize it. Shubha Downloader is Open source & FREE utility for end users. Shubha Downloader have main features as follows End of the day market data from web to your favorite charting application . Fundamental market data from web to your favorite charting application. Market reports from web to your favorite charting application.

43 lines (39 loc) 1.63 kB
Ext.define('Ext.calendar.data.CalendarModel', { extend: 'Ext.data.Model', requires: [ 'Ext.util.MixedCollection', 'Ext.calendar.data.CalendarMappings' ], statics: { /** * Reconfigures the default record definition based on the current {@link Ext.calendar.data.CalendarMappings CalendarMappings} * object. See the header documentation for {@link Ext.calendar.data.CalendarMappings} for complete details and * examples of reconfiguring a CalendarRecord. * @method create * @static * @return {Function} The updated CalendarRecord constructor function */ reconfigure: function(){ var Data = Ext.calendar.data, Mappings = Data.CalendarMappings, proto = Data.CalendarModel.prototype, fields = []; // It is critical that the id property mapping is updated in case it changed, since it // is used elsewhere in the data package to match records on CRUD actions: proto.idProperty = Mappings.CalendarId.name || 'id'; for(prop in Mappings){ if(Mappings.hasOwnProperty(prop)){ fields.push(Mappings[prop]); } } proto.fields.clear(); for(var i = 0, len = fields.length; i < len; i++){ proto.fields.add(Ext.create('Ext.data.Field', fields[i])); } return Data.CalendarModel; } } }, function() { Ext.calendar.data.CalendarModel.reconfigure(); });