Skip to content

Commit 6a75d4d

Browse files
committed
Move dashboard sandboxes collection to avoid infinite recursion. Fixes mozilla-services#1613.
1 parent f8608c9 commit 6a75d4d

File tree

2 files changed

+10
-28
lines changed

2 files changed

+10
-28
lines changed

dasher/javascript/adapters/sandboxes_adapter.js

+10-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ define(
55
"backbone",
66
"adapters/base_adapter",
77
"models/sandbox",
8-
"models/sandbox_output",
9-
"collections/plugins"
8+
"models/sandbox_output"
109
],
11-
function($, _, Backbone, BaseAdapter, Sandbox, Sandboxes, SandboxOutput) {
10+
function($, _, Backbone, BaseAdapter, Sandbox, SandboxOutput) {
1211
"use strict";
1312

1413
/**
@@ -21,6 +20,14 @@ define(
2120
*
2221
* @constructor
2322
*/
23+
var Sandboxes = Backbone.Collection.extend({
24+
model: Sandbox,
25+
26+
comparator: function(collection) {
27+
return(collection.get('Name'));
28+
}
29+
});
30+
2431
var SandboxesAdapter = function() {
2532
/**
2633
* Sandboxes collection to be filled with data.

dasher/javascript/collections/sandboxes.js

-25
This file was deleted.

0 commit comments

Comments
 (0)