Changes

I am a noob at JS :V
Line 86: Line 86:  
                 multiToggleStorage = MultiToggleStorage(target, property_default);
 
                 multiToggleStorage = MultiToggleStorage(target, property_default);
 
             //make sure the states are an array.
 
             //make sure the states are an array.
             if (!property_states || typeof(property_states) !== "Array" || property_states.length < 1) {
+
             if (!property_states || Array.isArray(property_states) || property_states.length < 1) {
 
                 return;
 
                 return;
 
             } else if (property_filter) {
 
             } else if (property_filter) {
Anonymous user