Merge pull request #724 from QingWei-Li/fix/clickoutside-bug

Clickoutside: fix id of undefined, fixed #720
pull/730/head
SkyAo 2016-10-30 15:49:41 +08:00 committed by GitHub
commit 7dc4648180
3 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,8 @@ const Files = [
filename: 'index.js',
content: `const ${ComponentName} = require('./src/main');
/* istanbul ignore next */
${ComponentName}.install = function(Vue) {
/* istanbul ignore next */
Vue.component(${ComponentName}.name, ${ComponentName});
};

View File

@ -50,7 +50,6 @@ export default {
for (let i = 0; i < len; i++) {
if (nodeList[i][ctx].id === el[ctx].id) {
nodeList.splice(i, 1);
delete el[ctx];
break;
}
}

View File

@ -143,6 +143,5 @@ describe('Utils:Clickoutside', () => {
Clickoutside.unbind(el);
document.body.click();
expect(count).to.equal(1);
expect(el[ctx]).to.not.exist;
});
});