Ticket #7751 (new defect)

Opened 3 months ago

Last modified 3 weeks ago

dojox.dtl.filter.strings.slugify bug

Reported by: rsaccon Owned by: pottedmeat
Priority: normal Milestone: tbd
Component: DojoX DTL Version: 1.2beta
Severity: normal Keywords: dojox dtl slugify
Cc:

Description

the dtl slugify does not work in my particular case when used inside templates loaded via include tag (tested in firefox 3.0.3).

Original source for slugify filter:

slugify: function(value){

value = value.replace(/[\w\s-]/g, "").toLowerCase(); return value.replace(/[\-\s]+/g, "-");

}

Problem:

typeof(value) is "object"

Workround:

slugify: function(value){

// summary: Converts to lowercase, removes // non-alpha chars and converts spaces to hyphens value = value.toString().replace(/[\w\s-]/g, "").toLowerCase(); return value.replace(/[\-\s]+/g, "-");

}

Change History

Changed 3 months ago by bill

  • owner changed from anonymous to pottedmeat
  • component changed from General to Dojox

Changed 3 months ago by bill

  • priority changed from high to normal
  • milestone changed from 1.2 to tbd

Changed 3 weeks ago by peller

  • component changed from Dojox to DojoX DTL
Note: See TracTickets for help on using tickets.