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 { Collection } from '../../common'; |
||||
import Device from './Device'; |
import Device from './Device'; |
||||
|
|
||||
export default class Devices extends Collection { |
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(); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
Devices.prototype.model = Device; |
Devices.prototype.model = Device; |
||||
|
|||||
Loading…
Reference in new issue