-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(docs): Build on Windows results in broken docs site and tests #4227
Conversation
Multiline SCSS comments result in ILLEGAL_CHARACTER errors in Chrome when built with Windows. Removed unused $mdMenu injections in MenuDirective and fixed duplicate offsets variable.
@@ -259,16 +259,16 @@ function MenuController($mdMenu, $attrs, $element, $scope) { | |||
* the offset of top and left in pixels. | |||
*/ | |||
function offsets() { | |||
var offsets = ($attrs.mdOffset || '0 0').split(' ').map(parseFloat); | |||
if (offsets.length == 2) { | |||
var topLeftOffsets = ($attrs.mdOffset || '0 0').split(' ').map(parseFloat); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Splaktar - let's resist these types of changes in the future; as they only add noise to the diff log while offering minimal clarity improvements.
@Splaktar - I do not see duplicate offsets variable in
|
WebStorm complained due to the this.offsets at the top of the file. |
@Splaktar - could you please take another look at this, I am getting the injector error again on win7 because _menu.js gets appended last? Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.4.4/$injector/nomod?p0=material.components.menu(anonymous function) @ angular.js:38(anonymous function) @ angular.js:1983a @ angular.js:1907Q.bootstrap @ angular.js:1981(anonymous function) @ angular-material.min.js:11(anonymous function) @ angular-material.min.js:11(anonymous function) @ angular-material.min.js:18
angular.js:38 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.4/$injector/modulerr?p0=docsApp&p1=Error%3A…ogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.4%2Fangular.min.js%3A19%3A381) Looking at the menu folder, windows explorer definitely lists _menu.js at the top, however listing the contents from a command line it's all the way at the bottom. For some reason it doesn't seem to like the underscore - if I rename it to something like menu-a.js it builds fine. Thanks! |
@paulflo150 Yes, I can take another look. I tried to reproduce what you are seeing last week, but could not. Perhaps because I was on Windows 10 instead of Windows 7. Can you please submit a separate issue with these specifics and mention me on it? |
@paulflo150 are you all set with this now or is this still a problem for you? |
Yup, it looks great now, thanks! |
Multiline SCSS comments result in ILLEGAL_CHARACTER errors in Chrome when built with Windows. Removed unused $mdMenu injections in MenuDirective and fixed duplicate offsets variable. Fixes angular#4226. Closes angular#4227.
Multi-line SCSS comments result in ILLEGAL_CHARACTER errors in Chrome when built with Windows.
Removed unused $mdMenu injections in MenuDirective and fixed duplicate offsets variable.
Fixes #4226. Fixes #4079.