Commit 659a36dc authored by qingwei.li's avatar qingwei.li

Clickoutside: fix id of undefined, fixed #720

parent 6e51f658
......@@ -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});
};
......
......@@ -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;
}
}
......
......@@ -143,6 +143,5 @@ describe('Utils:Clickoutside', () => {
Clickoutside.unbind(el);
document.body.click();
expect(count).to.equal(1);
expect(el[ctx]).to.not.exist;
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment