javascript - Using the dash character in property of object -


i trying upload aws s3 directly using plupload. works great on firefox 22 not firefox 18.

in older version of firefox, error ns_error_cannot_convert_data , have narrowed down line:

up.settings.multipart_params['content-type'] = 'image/png';

the reason doesn't work because multipart_params isn't supposed array/object. however, way - in property name.

is there anyway can use dash without using square brackets?

no, '-' not valid in javascript variable name. using in way using 'workaround' know of.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -