Browse Source

无jira任务 bubble get方法

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

3
index.html

@ -11,4 +11,5 @@
<div id="wrapper"></div> <div id="wrapper"></div>
</body> </body>
<script src="./dist/demo.js"></script> <script src="./dist/demo.js"></script>
</html> <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()); errorText = errorText(this.editor.getValue());
} }
if (BI.isKey(errorText)) { 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(""); this.setTitle("");
} else { } else {
this.setTitle(errorText); this.setTitle(errorText);
@ -273,7 +273,6 @@ BI.Editor = BI.inherit(BI.Single, {
adjustYOffset: 2 adjustYOffset: 2
}); });
this._checkToolTip(); 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, adjustXOffset: o.adjustXOffset,
offsetStyle: o.offsetStyle, offsetStyle: o.offsetStyle,
}); });
return BI.Bubbles.get(this.getName());
} }
}, },

Loading…
Cancel
Save