From 9c4bc5944fcbc04392ede242149a821b0f128f60 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 19 Apr 2017 12:41:38 +0300 Subject: [PATCH] chore: uncomment uglify + fix lint --- build/webpack.prod.js | 24 ++++++++++++------------ lib/services/menu.service.ts | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/build/webpack.prod.js b/build/webpack.prod.js index e21d6735..1b517d66 100644 --- a/build/webpack.prod.js +++ b/build/webpack.prod.js @@ -49,18 +49,18 @@ const config = webpackMerge(commonConfig({ minimize: true, debug: false }), - // new webpack.optimize.UglifyJsPlugin({ - // compress: { - // warnings: false, - // screw_ie8: true, - // negate_iife: false // for lazy v8 - // }, - // mangle: { screw_ie8 : true }, - // output: { - // comments: false - // }, - // sourceMap: true - // }), + new webpack.optimize.UglifyJsPlugin({ + compress: { + warnings: false, + screw_ie8: true, + negate_iife: false // for lazy v8 + }, + mangle: { screw_ie8 : true }, + output: { + comments: false + }, + sourceMap: true + }), new webpack.BannerPlugin(BANNER) ] }) diff --git a/lib/services/menu.service.ts b/lib/services/menu.service.ts index cebff4da..18e47196 100644 --- a/lib/services/menu.service.ts +++ b/lib/services/menu.service.ts @@ -50,14 +50,14 @@ export class MenuService { items: MenuItem[]; activeIdx: number = -1; + public domRoot: Document | Element = document; + private _flatItems: MenuItem[]; private _hashSubscription: Subscription; private _scrollSubscription: Subscription; private _progressSubscription: Subscription; private _tagsWithOperations: any; - public domRoot: Document | Element = document; - constructor( private hash:Hash, private tasks: LazyTasksService, @@ -70,7 +70,7 @@ export class MenuService { this.specMgr.spec.subscribe(spec => { if (!spec) return; this.buildMenu(); - }) + }); this._scrollSubscription = scrollService.scroll.subscribe((evt) => { this.onScroll(evt.isScrolledDown);