Skip to content

Commit

Permalink
Remove NFE to work in IE8. Fix yui#87.
Browse files Browse the repository at this point in the history
NFEs (named function expressions), while valuable for debugging,
cause problems in IE8. They're best avoided.

If you want to keep the function name in the stack-trace, you can
use the following pattern:

```javascript
window.$yetify = (function () {
  function $yetify (options) {
    // ...
  }

  return $yetify;
})();
```
  • Loading branch information
jasisk committed Nov 15, 2012
1 parent 565e101 commit 7d000e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hub/view/public/inject.js
Expand Up @@ -730,7 +730,7 @@ YUI.add("tempest-frameworks", function (Y, name) {
]
});

window.$yetify = function $yetify(options) {
window.$yetify = function (options) {
"use strict";

// Do not start QUnit tests before bind,
Expand Down

0 comments on commit 7d000e8

Please sign in to comment.