Skip to main content

Bug Tracker

Side navigation

#13025 closed feature (notabug)

Opened December 10, 2012 02:55PM UTC

Closed December 10, 2012 02:59PM UTC

Last modified December 10, 2012 03:02PM UTC

Can jQuery successfully execute in strict mode?

Reported by: sime.vidas@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

I've added the use-strict directive at the beginning of the outermost function in the jQuery source:

(function( window, undefined ) {
    'use strict';

Then, I've included this modified jQuery script to a web-page, and it executed without an error. So, jQuery core is able to initialize in strict mode successfully, but what about any changes in behavior? Can we expect jQuery to behave the same in strict mode?

What's your stance on this? Have you done testing in strict mode? When can we expect the use-strict directive to be included in jQuery core?

Attachments (0)
Change History (2)

Changed December 10, 2012 02:59PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

It's already in 1.9 pre-beta: http://code.jquery.com/jquery-git.js

Changed December 10, 2012 03:02PM UTC by sime.vidas@gmail.com comment:2

Great :-) Keep it up!