mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-26 09:08:05 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
6de96e76b6
2 changed files with 3 additions and 2 deletions
|
@ -85,7 +85,8 @@ var ensureLanguagesImportedFromUserCodeMap = function (userCodeMap) {
|
|||
|
||||
var restricted = ["XMLHttpRequest", "Worker"];
|
||||
if (!self.navigator || !(self.navigator.userAgent.indexOf('MSIE') > 0) &&
|
||||
!self.navigator.userAgent.match(/Trident.*rv\:11\./)) {
|
||||
!self.navigator.userAgent.match(/Trident.*rv\:11\./) &&
|
||||
!self.navigator.userAgent.match(/Edge/)) {
|
||||
// Can't restrict 'importScripts' in IE11, skip for all IE versions
|
||||
restricted.push("importScripts");
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ module.exports = Lank = class Lank extends CocoClass
|
|||
constructor: (@thangType, options) ->
|
||||
super()
|
||||
spriteName = @thangType.get('name')
|
||||
@isMissile = /(Missile|Arrow|Spear)/.test(spriteName) and not /(Tower|Charge)/.test(spriteName)
|
||||
@isMissile = /(Missile|Arrow|Spear|Bolt)/.test(spriteName) and not /(Tower|Charge)/.test(spriteName)
|
||||
@options = _.extend($.extend(true, {}, @options), options)
|
||||
@setThang @options.thang
|
||||
if @thang?
|
||||
|
|
Loading…
Reference in a new issue