From a27a4e2204033fab3f43ed87aedf11cbaa3bbe94 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Tue, 12 Apr 2016 08:24:44 -0700 Subject: [PATCH] feat(modal): add no css import script - Add index-nocss.js for modals Closes #5788 --- src/modal/index-nocss.js | 11 +++++++++++ src/modal/index.js | 13 ++----------- 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 src/modal/index-nocss.js diff --git a/src/modal/index-nocss.js b/src/modal/index-nocss.js new file mode 100644 index 0000000000..10473fae44 --- /dev/null +++ b/src/modal/index-nocss.js @@ -0,0 +1,11 @@ +require('../position/index-nocss.js'); +require('../stackedMap'); +require('../../template/modal/backdrop.html.js'); +require('../../template/modal/window.html.js'); +require('./modal'); + +var MODULE_NAME = 'ui.bootstrap.module.modal'; + +angular.module(MODULE_NAME, ['ui.bootstrap.modal', 'uib/template/modal/backdrop.html', 'uib/template/modal/window.html']); + +module.exports = MODULE_NAME; diff --git a/src/modal/index.js b/src/modal/index.js index fd47129d70..93dbeed820 100644 --- a/src/modal/index.js +++ b/src/modal/index.js @@ -1,11 +1,2 @@ -require('../position'); -require('../stackedMap'); -require('../../template/modal/backdrop.html.js'); -require('../../template/modal/window.html.js'); -require('./modal'); - -var MODULE_NAME = 'ui.bootstrap.module.modal'; - -angular.module(MODULE_NAME, ['ui.bootstrap.modal', 'uib/template/modal/backdrop.html', 'uib/template/modal/window.html']); - -module.exports = MODULE_NAME; +require('../position/position.css'); +module.exports = require('./index-nocss.js');