Skip to content

Commit

Permalink
Merge pull request #259 from fmtvp/fix_sagemcom_jshint
Browse files Browse the repository at this point in the history
Added "parent" to .jshintrc so that sagemcom.js exit strategy will pa…
  • Loading branch information
LewisGoodwin committed Jun 15, 2015
2 parents c35e64b + f6dddb2 commit 84307c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ module.exports = function (grunt) {
'static/script/lib/*',
'static/script/devices/googletv.js',
'static/script/devices/data/json2.js',
'static/script/widgets/horizontalcarousel.js',
'static/script/devices/exit/sagemcom.js'
'static/script/widgets/horizontalcarousel.js'
]
}
},
Expand Down
1 change: 1 addition & 0 deletions static/script/devices/exit/sagemcom.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ require.def(
* Exits the application by singalling the application iframe can be closed
*/
Device.prototype.exit = function() {
/* global parent: true */
parent.postMessage("JS_EVENT_QUIT_THIRD_PARTY", "*");
};
}
Expand Down

0 comments on commit 84307c8

Please sign in to comment.