Browse Source

无jira任务 bubble get方法

es6
imp 3 years ago
parent
commit
64bac552fe
  1. 1
      index.html
  2. 3
      src/base/single/editor/editor.js
  3. 1
      src/base/single/editor/editor.textarea.js

1
index.html

@ -11,4 +11,5 @@
<div id="wrapper"></div>
</body>
<script src="./dist/demo.js"></script>
<script src="./dist/router.js"></script>
</html>

3
src/base/single/editor/editor.js

@ -175,7 +175,7 @@ BI.Editor = BI.inherit(BI.Single, {
errorText = errorText(this.editor.getValue());
}
if (BI.isKey(errorText)) {
if (!this.isEnabled() || this.isValid() || (BI.Bubbles.has(this.getName()) && BI.Bubbles.get(this.getName()).isVisible())) {
if (!this.isEnabled() || this.isValid() || BI.Bubbles.has(this.getName())) {
this.setTitle("");
} else {
this.setTitle(errorText);
@ -273,7 +273,6 @@ BI.Editor = BI.inherit(BI.Single, {
adjustYOffset: 2
});
this._checkToolTip();
return BI.Bubbles.get(this.getName());
}
},

1
src/base/single/editor/editor.textarea.js

@ -184,7 +184,6 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
adjustXOffset: o.adjustXOffset,
offsetStyle: o.offsetStyle,
});
return BI.Bubbles.get(this.getName());
}
},

Loading…
Cancel
Save