jshint/jshint — pull request #1684 by JonathanGawrych (2014-05-16 17:13:09+00:00)
Title: Handle "hasOwnProperty" as a global variable

(This is a re-opened PR #1668 against ```master``` instead of the removed ```2.x``` branch)

If the user adds "hasOwnProperty" as a global variable, an error is thrown because ```JSHINT.blacklist.hasOwnProperty``` is no longer a function, but becomes a string. Ironically, some libraries define a global "hasOwnProperty", so that this exact error doesn't occur inside their own library.

This fixes an issue in another repository: spenceralger/gulp-jshint#39. Also various libraries who use hasOwnProperty (such as AngularJS) won't crash jshint.

As @valueof suggested here https://github.com/jshint/jshint/pull/1668#issuecomment-43298008, I used underscore instead of vanilla JavaScript