Skip to content

Commit

Permalink
处理webpack二次打包时 avalon不见的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed May 20, 2016
1 parent 4d06576 commit 99a183a
Show file tree
Hide file tree
Showing 8 changed files with 7,610 additions and 8,467 deletions.
12 changes: 9 additions & 3 deletions dist/avalon.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! built in 2016-5-20:14 version 2.01 by 司徒正美 */
/*! built in 2016-5-20:15 version 2.01 by 司徒正美 */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -298,6 +298,9 @@ return /******/ (function(modules) { // webpackBootstrap
}

global.avalon = avalon
if(typeof window !== 'undefined'){
window.avalon = avalon
}

avalon.init = function (el) {
this[0] = this.element = el
Expand Down Expand Up @@ -4869,8 +4872,11 @@ return /******/ (function(modules) { // webpackBootstrap
events.DOMAutoComplete = updateModel
}
}
events.compositionstart = openComposition
events.compositionend = closeComposition
if(!avalon.msie){
//https://github.com/RubyLouvre/avalon/issues/1368#issuecomment-220503284
events.compositionstart = openComposition
events.compositionend = closeComposition
}

}
}
Expand Down
12 changes: 9 additions & 3 deletions dist/avalon.modern.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! built in 2016-5-20:14 version 2.01 by 司徒正美 */
/*! built in 2016-5-20:15 version 2.01 by 司徒正美 */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -80,6 +80,9 @@ return /******/ (function(modules) { // webpackBootstrap
}

global.avalon = avalon
if(typeof window !== 'undefined'){
window.avalon = avalon
}

avalon.init = function (el) {
this[0] = this.element = el
Expand Down Expand Up @@ -7050,8 +7053,11 @@ return /******/ (function(modules) { // webpackBootstrap
events.change = updateModel
} else {
events.input = updateModel
events.compositionstart = openComposition
events.compositionend = closeComposition
if(!avalon.msie){
//https://github.com/RubyLouvre/avalon/issues/1368#issuecomment-220503284
events.compositionstart = openComposition
events.compositionend = closeComposition
}
}
break
}
Expand Down
12 changes: 9 additions & 3 deletions dist/avalon.next.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! built in 2016-5-20:14 version 2.01 by 司徒正美 */
/*! built in 2016-5-20:15 version 2.01 by 司徒正美 */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -81,6 +81,9 @@ return /******/ (function(modules) { // webpackBootstrap
}

global.avalon = avalon
if(typeof window !== 'undefined'){
window.avalon = avalon
}

avalon.init = function (el) {
this[0] = this.element = el
Expand Down Expand Up @@ -7051,8 +7054,11 @@ return /******/ (function(modules) { // webpackBootstrap
events.change = updateModel
} else {
events.input = updateModel
events.compositionstart = openComposition
events.compositionend = closeComposition
if(!avalon.msie){
//https://github.com/RubyLouvre/avalon/issues/1368#issuecomment-220503284
events.compositionstart = openComposition
events.compositionend = closeComposition
}
}
break
}
Expand Down
Loading

0 comments on commit 99a183a

Please sign in to comment.