sproutcore/sproutcore — Issue #680: SC.IndexSet.create should throw an error in development if passed an object that's not an SC.IndexSet or Numbers
Author: tim-evans
Created: 2012-01-06 18:37:25+00:00
State: open

Right now, `SC.IndexSet#create` allows normal object hashes to be passed in without any complaints. As this is non-idiomatic behavior, I propose that we should throw an error in debug mode to notify developers that their use of the SC.IndexSet API is incorrect. I'd just like to note briefly that SC.IndexSet.create is documented partially correctly. (It says that it takes two `Number`s)

Anyone have any opinions on this?