Esempio n. 1
0
        protected JSTypedArray <T> GetTypedArray <T>(string name) where T : JSObjectWrapper
        {
            object result;

            if (!wrappers.TryGetValue(name, out result))
            {
                var existingJSObject = GetProperty(name);

                var newItem = new JSTypedArray <T>(context, existingJSObject);
                result = wrappers[name] = newItem;

                if (existingJSObject == null)
                {
                    newItem.Activated += OnOwnedObjectActived;
                }
            }

            return((JSTypedArray <T>)result);
        }
 void ApplyNameTag(JSTypedArray <JSNameVariable> nameProperty, string name)
 {
     ApplyNameTagMulti(new[] { nameProperty }, name);
 }