Skip to content

Commit

Permalink
Export Popup & Popover to window.
Browse files Browse the repository at this point in the history
  • Loading branch information
furybean committed Jun 18, 2015
1 parent c872711 commit 5ab43d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "popover.js",
"main": "dist/popover.js",
"version": "0.2.2",
"version": "0.3.2",
"authors": [
"Furybean <long.zhang@ele.me>"
],
Expand Down
8 changes: 4 additions & 4 deletions dist/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ if (typeof define === 'function' && define.amd) { // For AMD
}).factory(POPOVER_NAME, function() {
return Popover;
});
} else {
Number(document.documentMode) < 9 && window.execScript('var ' + POPUP_NAME + ',' + POPOVER_NAME + ';');
window[POPUP_NAME] = Popup;
window[POPOVER_NAME] = Popover;
}
Number(document.documentMode) < 9 && window.execScript('var ' + POPUP_NAME + ',' + POPOVER_NAME + ';');
window[POPUP_NAME] = Popup;
window[POPOVER_NAME] = Popover;

},{"./popover":5,"./popup":6}],2:[function(require,module,exports){
var domUtil = require('./dom-util');
var transition = require('./transition');
Expand Down
9 changes: 4 additions & 5 deletions src/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ if (typeof define === 'function' && define.amd) { // For AMD
}).factory(POPOVER_NAME, function() {
return Popover;
});
} else {
Number(document.documentMode) < 9 && window.execScript('var ' + POPUP_NAME + ',' + POPOVER_NAME + ';');
window[POPUP_NAME] = Popup;
window[POPOVER_NAME] = Popover;
}
}
Number(document.documentMode) < 9 && window.execScript('var ' + POPUP_NAME + ',' + POPOVER_NAME + ';');
window[POPUP_NAME] = Popup;
window[POPOVER_NAME] = Popover;

0 comments on commit 5ab43d6

Please sign in to comment.