Skip to content

Commit

Permalink
fix(bootstrap): do not instrument angular <1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Dec 10, 2014
1 parent 6d4792e commit 183a0bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hint.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ function maybeBootstrap() {

function loadModules() {
var modules = [], elt;
if (angular.version.minor < 2) {
return modules;
}

if ((elt = document.querySelector('[ng-hint-include]'))) {
modules = hintModulesFromElement(elt);
Expand Down

0 comments on commit 183a0bb

Please sign in to comment.