diff options
author | Eric Guzman | 2012-02-20 15:47:04 -0800 |
---|---|---|
committer | Eric Guzman | 2012-02-20 15:47:04 -0800 |
commit | 27b1c2241a97472b4e3670080274767204955970 (patch) | |
tree | 2bba2a784924a47451dd60963a0c458a8b5f4a76 /js | |
parent | c743b291e91b6de8440ecba0ddaf62546c1692f1 (diff) | |
parent | a9f81445afbc10b246ebbbcf99a0db11a9679021 (diff) | |
download | ninja-27b1c2241a97472b4e3670080274767204955970.tar.gz |
Merge branch 'StylesControllerUpdates' of github.com:ericguzman/ninja-internal into StylesControllerUpdates
Diffstat (limited to 'js')
-rwxr-xr-x | js/controllers/styles-controller.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js index 7d5dc42b..885d710f 100755 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js | |||
@@ -571,6 +571,10 @@ var stylesController = exports.StylesController = Montage.create(Component, { | |||
571 | rules = [], | 571 | rules = [], |
572 | win = element.ownerDocument.defaultView, | 572 | win = element.ownerDocument.defaultView, |
573 | self = this; | 573 | self = this; |
574 | |||
575 | if(!win) { | ||
576 | return null; | ||
577 | } | ||
574 | 578 | ||
575 | if(!omitPseudos) { | 579 | if(!omitPseudos) { |
576 | pseudos.concat(['link', 'visited', 'active', 'hover', 'focus', 'first-letter', | 580 | pseudos.concat(['link', 'visited', 'active', 'hover', 'focus', 'first-letter', |