Permalink
Browse files

Merge pull request #1630 from ajaxorg/fix_newfile_error_ff

* add a check to fix issue with "Firefox threw 'tabPage' after refresh"
  • Loading branch information...
janjongboom committed Jun 1, 2012
2 parents d507268 + bad0cdf commit ca4ff6fb37fe9832ce0b1c7fa7441af72a4e2036
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins-client/ext.save/save.js
@@ -556,7 +556,7 @@ module.exports = ext.register("ext/save/save", {
function expand(){
var tabPage = tabEditors.getPage(),
path = tabPage ? tabPage.$model.data.getAttribute('path') : false,
- isNew = tabPage.$model.data.getAttribute('newfile');
+ isNew = tabPage ? tabPage.$model.data.getAttribute('newfile') : false;
if (!isNew)
_self.choosePath(path);
else

0 comments on commit ca4ff6f

Please sign in to comment.