浏览代码

Fixed a coding mistake:

if(typeof something !== undefined) --> if(typeof something !== 'undefined')
Dante 11 年之前
父节点
当前提交
643bfc317a
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 4
      assets/bootstrap-dialog/js/bootstrap-dialog.js
  2. 1 1
      assets/bootstrap-dialog/js/bootstrap-dialog.min.js

+ 4 - 4
assets/bootstrap-dialog/js/bootstrap-dialog.js

@@ -468,24 +468,24 @@
             $button.prop('id', button.id);
 
             // Icon
-            if (typeof button.icon !== undefined && $.trim(button.icon) !== '') {
+            if (typeof button.icon !== 'undefined' && $.trim(button.icon) !== '') {
                 $button.append(this.createButtonIcon(button.icon));
             }
 
             // Label
-            if (typeof button.label !== undefined) {
+            if (typeof button.label !== 'undefined') {
                 $button.append(button.label);
             }
 
             // Css class
-            if (typeof button.cssClass !== undefined && $.trim(button.cssClass) !== '') {
+            if (typeof button.cssClass !== 'undefined' && $.trim(button.cssClass) !== '') {
                 $button.addClass(button.cssClass);
             } else {
                 $button.addClass('btn-default');
             }
 
             // Hotkey
-            if (typeof button.hotkey !== undefined) {
+            if (typeof button.hotkey !== 'undefined') {
                 this.registeredButtonHotkeys[button.hotkey] = $button;
             }
 

文件差异内容过多而无法显示
+ 1 - 1
assets/bootstrap-dialog/js/bootstrap-dialog.min.js