normalize moto module header
This commit is contained in:
parent
9b1460e3cd
commit
8927501eca
11 changed files with 40 additions and 42 deletions
|
|
@ -7,13 +7,13 @@
|
|||
* http://codeincomplete.com/posts/2011/5/7/bin_packing/
|
||||
*/
|
||||
|
||||
(function (){
|
||||
(function () {
|
||||
|
||||
if (!self.moto) self.moto = {};
|
||||
if (self.moto.Pack) return;
|
||||
let moto = self.moto = self.moto || {};
|
||||
if (moto.Pack) return;
|
||||
|
||||
self.moto.Pack = Packer;
|
||||
self.moto.Sort = function (a, b) {
|
||||
moto.Pack = Packer;
|
||||
moto.Sort = function (a, b) {
|
||||
let aa = (a.w * a.h);
|
||||
let ab = (b.w * b.h);
|
||||
if (Math.abs(aa-ab) < 1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue