From 356e5d085225cbbcd5ae81494e8cb353004482b2 Mon Sep 17 00:00:00 2001 From: "Terrance A. Snyder" Date: Fri, 4 Jan 2019 18:41:41 +0900 Subject: [PATCH 1/2] [propeller] expose ability to call propeller kit init to external libs (SPA apps, aurelia, etc) so that we can force DOM inspection PRIOR to jqueries 'document.ready' as aurelia side-loads and its 'too late' to process that. --- dist/js/propeller.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/js/propeller.js b/dist/js/propeller.js index 00f242e..836366a 100644 --- a/dist/js/propeller.js +++ b/dist/js/propeller.js @@ -15,7 +15,7 @@ var commons = function () { function commons() {} commons.attachParentSelector = function (parentSelector, defaultSelector) { var customSelector = defaultSelector; - if (parentSelector !== '' && parentSelector.length > 0) { + if (parentSelector && parentSelector !== '' && parentSelector.length > 0) { if (parentSelector === defaultSelector) { customSelector = defaultSelector; } else if ($(parentSelector).hasClass(defaultSelector)) { @@ -95,6 +95,10 @@ var observeDOM = (function () { })(); $(document).ready(function () { + $.propellerkit(); +}); + +$.propellerkit = function() { observeDOM(document.querySelector('body'), function (mutations) { processMutation(0); @@ -171,7 +175,7 @@ $(document).ready(function () { return false; } }); -}); +}; /** From 37b860b3429746065c8039e402bef5be628b1583 Mon Sep 17 00:00:00 2001 From: "Terrance A. Snyder" Date: Fri, 4 Jan 2019 18:48:01 +0900 Subject: [PATCH 2/2] [fix] css --- dist/css/propeller.css | 47 ------------------------------------------ 1 file changed, 47 deletions(-) diff --git a/dist/css/propeller.css b/dist/css/propeller.css index 6bedefa..a640930 100644 --- a/dist/css/propeller.css +++ b/dist/css/propeller.css @@ -1,50 +1,3 @@ -/*! - * Propeller v1.3.1 (http://propeller.in/) - * Copyright 2016-2018 Digicorp, Inc - * Licensed under MIT (http://propeller.in/LICENSE) - */ -@font-face { - font-family: "Roboto"; - font-style: normal; - font-weight: 100; - - src: url("../fonts/roboto/Roboto-Thin-webfont.eot?") format("eot"), url("../fonts/roboto/Roboto-Thin-webfont.woff") format("woff"), url("../fonts/roboto/Roboto-Thin-webfont.ttf") format("truetype"), url('../fonts/roboto/Roboto-Thin-webfont.svg#str-replace("Roboto", " ", "_")') format("svg"); -} -@font-face { - font-family: "Roboto"; - font-style: normal; - font-weight: 300; - - src: url("../fonts/roboto/Roboto-Light-webfont.eot?") format("eot"), url("../fonts/roboto/Roboto-Light-webfont.woff") format("woff"), url("../fonts/roboto/Roboto-Light-webfont.ttf") format("truetype"), url('../fonts/roboto/Roboto-Light-webfont.svg#str-replace("Roboto", " ", "_")') format("svg"); -} -@font-face { - font-family: "Roboto"; - font-style: normal; - font-weight: 400; - - src: url("../fonts/roboto/Roboto-Regular-webfont.eot?") format("eot"), url("../fonts/roboto/Roboto-Regular-webfont.woff") format("woff"), url("../fonts/roboto/Roboto-Regular-webfont.ttf") format("truetype"), url('../fonts/roboto/Roboto-Regular-webfont.svg#str-replace("Roboto", " ", "_")') format("svg"); -} -@font-face { - font-family: "Roboto"; - font-style: normal; - font-weight: 500; - - src: url("../fonts/roboto/Roboto-Medium-webfont.eot?") format("eot"), url("../fonts/roboto/Roboto-Medium-webfont.woff") format("woff"), url("../fonts/roboto/Roboto-Medium-webfont.ttf") format("truetype"), url('../fonts/roboto/Roboto-Medium-webfont.svg#str-replace("Roboto", " ", "_")') format("svg"); -} -@font-face { - font-family: "Roboto"; - font-style: normal; - font-weight: 700; - - src: url("../fonts/roboto/Roboto-Bold-webfont.eot?") format("eot"), url("../fonts/roboto/Roboto-Bold-webfont.woff") format("woff"), url("../fonts/roboto/Roboto-Bold-webfont.ttf") format("truetype"), url('../fonts/roboto/Roboto-Bold-webfont.svg#str-replace("Roboto", " ", "_")') format("svg"); -} -@font-face { - font-family: "Roboto"; - font-style: normal; - font-weight: 900; - - src: url("../fonts/roboto/Roboto-Black-webfont.eot?") format("eot"), url("../fonts/roboto/Roboto-Black-webfont.woff") format("woff"), url("../fonts/roboto/Roboto-Black-webfont.ttf") format("truetype"), url('../fonts/roboto/Roboto-Black-webfont.svg#str-replace("Roboto", " ", "_")') format("svg"); -} /*! * Propeller v1.3.1 (http://propeller.in): typography.css * Copyright 2016-2018 Digicorp, Inc.