Browse Source

Update angular extension.

zhixin 10 years ago
parent
commit
9298e643bd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/extensions/angular/bootstrap-table-angular.js

+ 3 - 0
src/extensions/angular/bootstrap-table-angular.js

@@ -1,5 +1,8 @@
 // JavaScript source code
 (function () {
+  if (typeof angular === 'undefined') {
+    return;
+  }
   angular.module('bsTable', []).directive('bsTableControl', function () {
     var CONTAINER_SELECTOR = '.bootstrap-table';
     var SCROLLABLE_SELECTOR = '.fixed-table-body';