[Kimchi-devel] [PATCH] Issue 299 Inactive storage pools are listed while editing template
Adam King
rak at linux.vnet.ibm.com
Fri Feb 28 16:24:06 UTC 2014
On 2/28/2014 8:12 AM, Crístian Viana wrote:
> Am 27-02-2014 18:16, schrieb Adam King:
>> - if (name.contains("/")) {
>> + if (name.indexOf("/")!=-1) {
> A quick curious question: is there really a difference in those
> commands? I always thought "contains" was usually implemented as
> "indexOf != -1" anyway.
String.contains() is experimental function that doesn't work on all
browsers,
otherwise I would assume you are correct that its the same thing under
the covers.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/contains#Browser_compatibility
--
Adam King <rak at linux.vnet.ibm.com>
IBM C&SI
More information about the Kimchi-devel
mailing list