thegameofcode / iris

Iris JavaScript
BSD 3-Clause "New" or "Revised" License
28 stars 13 forks source link

Improve self.ui To Return UI instances #132

Closed ghost closed 11 years ago

ghost commented 11 years ago

Overload self.ui function:

self.ui("data-id"); -> Returns the UI created in "data-id" container, when its tmplMode = self.REPLACE -> Returns the UI collection inside "data-id" container, when its tmplMode = self.APPEND

surtich commented 11 years ago

Hola Ángel,

Me parece buena idea, pero ¿no causaría un problema de incompatibilidad con la versión anterior?

2013/6/11 angelsanchez notifications@github.com

Overload self.ui function:

self.ui("data-id"); -> Returns the UI created in "data-id" container, when its tmplMode = self.REPLACE -> Returns the UI collection inside "data-id" container, when its tmplMode = self.APPEND

— Reply to this email directly or view it on GitHubhttps://github.com/thegameofcode/iris/issues/132 .

Un saludo,

Javier Pérez

ghost commented 11 years ago

I think that it is backward compatible..there are not self.ui(String) declared previously

UI.prototype.ui = function(p_id, p_jsUrl, p_uiSettings, p_templateMode)
Screen.prototype.ui = function(p_id, p_jsUrl, p_uiSettings, p_templateMode)
surtich commented 11 years ago

My mistake. I have confused the self.get and the self.ui methods. Sorry

2013/6/11 angelsanchez notifications@github.com

I think that it is backward compatible..there are not self.ui(String) declared previously

UI.prototype.ui = function(p_id, p_jsUrl, p_uiSettings, p_templateMode)Screen.prototype.ui = function(p_id, p_jsUrl, p_uiSettings, p_templateMode)

— Reply to this email directly or view it on GitHubhttps://github.com/thegameofcode/iris/issues/132#issuecomment-19266855 .

Un saludo,

Javier Pérez