mirror of https://github.com/artf/grapesjs.git
1 changed files with 1 additions and 10 deletions
@ -1,15 +1,6 @@ |
|||
import { Collection } from '../../common'; |
|||
import Device from './Device'; |
|||
|
|||
export default class Devices extends Collection { |
|||
comparator(left, right) { |
|||
const max = Number.MAX_VALUE; |
|||
return (right.get('priority') || max) - (left.get('priority') || max); |
|||
} |
|||
|
|||
getSorted() { |
|||
return this.sort(); |
|||
} |
|||
} |
|||
export default class Devices extends Collection {} |
|||
|
|||
Devices.prototype.model = Device; |
|||
|
|||
Loading…
Reference in new issue