Merge branch 'master' into production

This commit is contained in:
Nick Winter 2015-08-10 06:49:24 -07:00
commit 6de96e76b6
2 changed files with 3 additions and 2 deletions

View file

@ -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");
}

View file

@ -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?