Skip to content

Commit

Permalink
Move dashboard sandboxes collection to avoid infinite recursion. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
whd authored and rafrombrc committed Jul 30, 2015
1 parent bc0a005 commit 6b0c14b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
13 changes: 10 additions & 3 deletions dasher/javascript/adapters/sandboxes_adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ define(
"backbone",
"adapters/base_adapter",
"models/sandbox",
"models/sandbox_output",
"collections/plugins"
"models/sandbox_output"
],
function($, _, Backbone, BaseAdapter, Sandbox, Sandboxes, SandboxOutput) {
function($, _, Backbone, BaseAdapter, Sandbox, SandboxOutput) {
"use strict";

/**
Expand All @@ -21,6 +20,14 @@ define(
*
* @constructor
*/
var Sandboxes = Backbone.Collection.extend({
model: Sandbox,

comparator: function(collection) {
return(collection.get('Name'));
}
});

var SandboxesAdapter = function() {
/**
* Sandboxes collection to be filled with data.
Expand Down
25 changes: 0 additions & 25 deletions dasher/javascript/collections/sandboxes.js

This file was deleted.

0 comments on commit 6b0c14b

Please sign in to comment.