pome-ui 2.0.0-preview5 → 2.0.0-preview7

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/pome-ui.js CHANGED
@@ -151,12 +151,28 @@ function build(options, exports) {
151
151
  }
152
152
  };
153
153
 
154
+ function _getQueryString() {
155
+ var ret = window.location.search;
156
+
157
+ if (window.location.hash.indexOf('?') > 0) {
158
+ var hashSearch = window.location.hash.substr(window.location.hash.indexOf('?'));
159
+ if (ret) {
160
+ ret += '&' + hashSearch.substr(1);
161
+ } else {
162
+ ret = hashSearch;
163
+ }
164
+ }
165
+
166
+ return ret;
167
+ }
168
+
154
169
  function _parseQueryString(dest) {
155
- if (!window.location.search) {
170
+ var qs = _getQueryString();
171
+ if (!qs) {
156
172
  return;
157
173
  }
158
174
 
159
- var str = window.location.search;
175
+ var str = qs;
160
176
  if (str[0] == '?') {
161
177
  str = str.substr(1);
162
178
  }
@@ -1483,6 +1499,15 @@ function build(options, exports) {
1483
1499
  eval(js);
1484
1500
  }
1485
1501
 
1502
+
1503
+ function UseInlineAddin(script) {
1504
+ var Addin = function (view, opt) {
1505
+ exports._addins.push({ view, opt });
1506
+ };
1507
+
1508
+ eval(script);
1509
+ }
1510
+
1486
1511
  exports.root = root;
1487
1512
  exports.useConfig = UseConfig;
1488
1513
  exports.mapRoute = MapRoute;
@@ -1494,6 +1519,7 @@ function build(options, exports) {
1494
1519
  exports.mount = mount;
1495
1520
  exports.useRoutes = useRoutes;
1496
1521
  exports.useAddin = UseAddin;
1522
+ exports.useInlineAddin = UseInlineAddin;
1497
1523
 
1498
1524
  return exports;
1499
1525
  };