Sha256: cfe99ce564639286b265c080b3001307da922078414dec5a9662b338cfe4744a
Contents?: true
Size: 613 Bytes
Versions: 64
Compression:
Stored size: 613 Bytes
Contents
pageflow.Scaffold = pageflow.Object.extend({ initialize: function(parent, options) { this.parent = parent; this.options = options || {}; }, create: function() { var scaffold = this; var query = this.options.depth ? '?depth=' + this.options.depth : ''; this.model = this.build(); Backbone.sync('create', this.model, { url: this.model.url() + '/scaffold' + query, success: function(response) { scaffold.load(response); scaffold.model.trigger('sync', scaffold.model, response, {}); } }); }, build: function() {}, load: function() {} });
Version data entries
64 entries across 64 versions & 1 rubygems