backbone-toolbar
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -436,3 +436,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var ids = []; | ||
var regex = /([#.])([^#.]+)/g; | ||
var regex = /([#\.])([^#\.]+)/g; | ||
var match = null; | ||
@@ -1405,2 +1405,3 @@ | ||
text: '', | ||
disabled: false, | ||
iconLeft: null, | ||
@@ -1411,2 +1412,7 @@ iconRight: null, | ||
}, dropdownItem); | ||
if (options.disabled) { | ||
options.classes = _underscore2.default.union(options.classes, ['disabled']); | ||
} | ||
var html = (0, _dropdownItem2.default)(options); | ||
@@ -1419,3 +1425,3 @@ var events = {}; | ||
if (_underscore2.default.isFunction(onClick)) { | ||
if (_underscore2.default.isFunction(onClick) && !options.disabled) { | ||
events['click .dropdown-item#' + id] = onClick; | ||
@@ -1422,0 +1428,0 @@ } |
{ | ||
"main": "dist/backbone-toolbar.js", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "dist" |
@@ -0,0 +0,0 @@ # backbone-toolbar |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1582
141145