fastman2 2.8.9 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/popupman.js CHANGED
@@ -1 +1,61 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return webpackJsonpfastman([20],{223:function(e,t,n){e.exports=n(89)},89:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(10);t.default=function(e,t){if(void 0===t&&(t=!0),"string"==typeof e&&e.indexOf("<")>=0){var n=document.createElement("div");if(n.innerHTML=e.trim(),!(n.childNodes.length>0))return!1;e=n.childNodes[0],t&&e.classList.add("remove-on-close"),$(o.defaults.modalContainer).append(e)}return e=$(e),0!==e.length&&(e.show(),e.find(".content").scroller("refresh"),e.find("."+o.defaults.viewClass).length>0&&$.sizeNavbars(e.find("."+o.defaults.viewClass)[0]),(0,o.openModal)(e),e[0])}}},[223])});
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["fastman"] = factory();
8
+ else
9
+ root["fastman"] = factory();
10
+ })(this, function() {
11
+ return webpackJsonpfastman([20],{
12
+
13
+ /***/ 223:
14
+ /***/ (function(module, exports, __webpack_require__) {
15
+
16
+ module.exports = __webpack_require__(89);
17
+
18
+
19
+ /***/ }),
20
+
21
+ /***/ 89:
22
+ /***/ (function(module, exports, __webpack_require__) {
23
+
24
+ "use strict";
25
+
26
+
27
+ Object.defineProperty(exports, "__esModule", {
28
+ value: true
29
+ });
30
+
31
+ var _modal2 = __webpack_require__(10);
32
+
33
+ exports.default = function (modal, removeOnClose) {
34
+ if (typeof removeOnClose === 'undefined') removeOnClose = true;
35
+ if (typeof modal === 'string' && modal.indexOf('<') >= 0) {
36
+ var _modal = document.createElement('div');
37
+ _modal.innerHTML = modal.trim();
38
+ if (_modal.childNodes.length > 0) {
39
+ modal = _modal.childNodes[0];
40
+ if (removeOnClose) modal.classList.add('remove-on-close');
41
+ $(_modal2.defaults.modalContainer).append(modal);
42
+ } else return false; //nothing found
43
+ }
44
+ modal = $(modal);
45
+ if (modal.length === 0) return false;
46
+ modal.show();
47
+ modal.find(".content").scroller("refresh");
48
+ if (modal.find('.' + _modal2.defaults.viewClass).length > 0) {
49
+ $.sizeNavbars(modal.find('.' + _modal2.defaults.viewClass)[0]);
50
+ }
51
+ (0, _modal2.openModal)(modal);
52
+
53
+ return modal[0];
54
+ }; /**
55
+ * Created by linyiqing on 2017/3/27.
56
+ */
57
+
58
+ /***/ })
59
+
60
+ },[223]);
61
+ });