Login Register


'use strict' breaks my code filter_list
Author
Message
RE: 'use strict' breaks my code #11
(10-06-2015, 07:02 PM)Dijkstra Wrote: Never knew that.
Nice to learn new things. (~:

Yup. You were almost right though - 'use strict' still has to be the first line of code even if it is inside a function.

Reply

RE: 'use strict' breaks my code #12
(10-07-2015, 11:46 PM)$ninja Wrote: Yup. You were almost right though - 'use strict' still has to be the first line of code even if it is inside a function.

Well I knew it had to be the first line. Didn't know you could use strict on a single function though.

Reply

RE: 'use strict' breaks my code #13
Bump; fixed. Reference: Return a new instance of the function if this equals undefined.

Reply







Users browsing this thread: 1 Guest(s)