Sha256: 6bd87f22512e8cf14f9ea1366ae253ef743d15167b9e49d8aa567f83b6679777
Contents?: true
Size: 673 Bytes
Versions: 16
Compression:
Stored size: 673 Bytes
Contents
pageflow.CommonPageConfigurationTabs = pageflow.Object.extend({ initialize: function() { this.configureFns = {}; }, register: function(name, configureFn) { this.configureFns[name] = configureFn; }, apply: function(configurationEditorView) { _.each(this.configureFns, function(configureFn, name) { configurationEditorView.tab(name, function() { configureFn.call(prefixInputDecorator(name, this)); }); }); function prefixInputDecorator(name, dsl) { return { input: function(propertyName, view, options) { return dsl.input(name + '_' + propertyName, view, options); } }; } } });
Version data entries
16 entries across 16 versions & 1 rubygems