Loading ...
Sorry, an error occurred while loading the content.

Re: jslint options specified in .js files

Expand Messages
  • Douglas Crockford
    ... I am sorry. I don t understand. What exactly is the problem?
    Message 1 of 4 , Jun 9, 2011
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, Jérôme DESPATIS <jerome@...> wrote:
      > One more remark, as Firefox throws me:
      > 'caller', 'callee', and 'arguments' properties may not be accessed on
      > strict mode functions or the arguments objects for calls to them
      >
      > => Wouldn't be nice to not generate an error if "use strict" is not
      > present in a function that uses caller, caller or arguments ?
      >
      > Because, in the following code, if 'use strict' is present, jslint is
      > happy but the code doesn't work.
      > And if not present, then jslint is not happy, but code works!
      >
      > dojo.declare("my.InlineEditBox", [dijit.InlineEditBox], {
      > edit: function () {
      > //"use strict";
      > this.previousValue = this.get("value");
      > this.inherited(arguments);
      > }
      > });


      I am sorry. I don't understand. What exactly is the problem?
    Your message has been successfully submitted and would be delivered to recipients shortly.