New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nanoislands

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanoislands - npm Package Compare versions

Comparing version 0.6.15 to 0.6.16

40

blocks/tooltip/tooltip.js
nb.define('tooltip-jq-toggler', {
//NOTES: из-за такого определения Factory._onevent постоянно долбится событиями
// но по другому (mouseeneter/leave) не сделать, потому что они случаться один раз на document
// как вариант для mouseenter/leave надо делать не $document.on(event), $document.on(event, '.nb')
events: {
'mouseover': 'onmouseenter'
oninit: function() {
this.onmouseenter = this.onmouseenter.bind(this);
this.$node.tooltip(this._getParams());
this.$node.on('mouseenter', this.onmouseenter);
},
'onmouseenter': function() {
destroy: function() {
this.$node.tooltip('destroy');
this.$node.off('mouseenter', this.onmouseenter);
this.nbdestroy();
},
onmouseenter: function() {
if (this.$node.hasClass('_nb-is-disabled')) {
return true;
}
var data = this.nbdata()[this.name];
this.$node.tooltip("open");
},
_getParams: function() {
var data = this.nbdata()[this.name] || {};
var params = {
content: data.content,
items: '*',
tooltipClass: "nb-tooltip nb-island _nb-small-fly-island"
tooltipClass: 'nb-tooltip nb-island _nb-small-fly-island'
};
if (data['class']) {
data.tooltipClass += ' ' + data['class'];
}
if (data.content) {
params.content = data.content;
}
if (data.position) {
params.position = data.position;
}
this.$node.tooltip(params);
this.$node.tooltip("open");
return params;
}
}, 'base');

@@ -9,3 +9,3 @@ {

"description": "Yate/Stylus/jQuery-UI library for Yandex corporate style",
"version": "0.6.15",
"version": "0.6.16",
"licence": "MIT",

@@ -12,0 +12,0 @@ "homepage": "http://yandex-ui.github.io/nanoislands/",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc