Comments (6)
I do not know why are "named function expressions" used here,but if they are needed, one can do this :
var temp;
...
var Qunit = {
test: (temp = function test(){ ... }) ;
...
}
...
temp = null;
This is actually quite good for avoiding lekas too ...
--DBJ
from qunit.
lekas --> leaks
from qunit.
Remove the named function expressions, to stop Safari 2 from freaking out. Closed by f55bf2d.
from qunit.
Good. The only reason I can remember, to use named F expressions, is to be able to "see" named (vs anonymous) functions in (visual studio) debugger ...
--DBJ
from qunit.
This issue, and a possible solution for Safari 2, is discussed further here, in case anyone is interested: http://yura.thinkweb2.com/named-function-expressions/#named-expr
from qunit.
I do not think jQuery or (BBC) Glow will ever have "named function expressions" inside ... Sorry for the noise ;o)
from qunit.
Related Issues (20)
- Can we start a `next` branch so I can start PRing improvements? HOT 1
- Let simple array data in test.each() serve as automatic labels
- Facilitate "close to" number equal assertion HOT 3
- [Feature Request]: Allow more customization of how errors are handled (especially uncaughtrejection). HOT 1
- Web Test Runner and QUnit reporting problems HOT 9
- qunit cannot parse private functions and properties HOT 2
- Support multiple `module` parameters (QUnit.config.module array) HOT 2
- Unify qunitjs.com and api.qunitjs.com
- [QUESTION] How can I forcefully abort a testcase and advance to next in queue HOT 1
- Let the test.each callback access the current case key HOT 3
- deepEqual should not compare constructors HOT 2
- Document QUnit.urlsParams
- Add tests for QUnit.config.fixture HOT 1
- Stack trace cleaning preserves URLs with ports HOT 1
- [Feature Request]: Option to run tests in parallel? HOT 3
- Document QUnit.equiv()
- Support DOM nodes in TapReporter value formatting
- Support multiple `--reporter` options on the CLI
- Uncaught TypeError: this.element is undefined (applyUrlParams)
- UI doesn't reflect actual value of custom checkboxes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qunit.